mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #3636] Adding a simple config makes the proxy host offline #2411
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2411
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Asynchronite on GitHub (Mar 18, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3636
I'll keep this plain and simple.
I added a simple proxy host with the following advanced config;
And when I saved the config, the proxy host status just says offline.
@Asynchronite commented on GitHub (Mar 18, 2024):
Even if I remove the server {} part it just gives me a 404 error.
@wolviex commented on GitHub (Mar 20, 2024):
Do you mean the advanced config/Custom Nginx Configuration as set in the web gui?
That custom config will just drop in above the location tag on the actual nginx config file. NPM does the rest, so you wouldn't put in any of the other stuff. The only part you could specify is:
root /var/www/example; index index.html;Or are you creating a completely new .conf file and dropping it in the proxy_host directory?
In that case a 404 suggests that the file you're trying to access doesn't exist.
going to /foo will look for either a file named /var/www/example/foo, an index in the directory /var/www/example/foo/, or the directory /foo/ (if you have autoindex enabled).
But that's not an NPM question, it's an nginx question. Nginx Docs
@Asynchronite commented on GitHub (Mar 22, 2024):
@wolviex
Hello, I was looking at the wrong config, however, I had to remove server {} and it fixed that config (for some reason).
Now, the real config is as follows (it's a bit lengthy)
The above config file has been edited so it doesn't require an SSL cert. I'm assuming I can add when I'm making a proxy host?
In any case, even when I add this, it just says that it's offline. Again, I removed the
server {}part of the config, and it showed it online. However, when I opened the website, it have me a 502 error. I then added an SSL certificate in the proxy manager, and it still would not work and would just give me a 502 error. From what I've gathered from a normal Nginx instance, I wouldn't need to run any of the files in order to get my site up.But now, I don't know so I'd really appreciate any help that can be given, thank you!
@Asynchronite commented on GitHub (Mar 22, 2024):
My configuration is pointing towards port 80, which was in the config file but I removed it and just added it to the proxy host instead.
@wolviex commented on GitHub (Mar 23, 2024):
If you're manually editing the nginx configuration files then this isn't an NPM question, this is an nginx question. Nginx Docs
The fact that you're specifying a root with index suggests that this is not a proxy host, it only has proxy subdirectories.
What part of this are you creating with NginxProxyManager?
@Asynchronite commented on GitHub (Mar 25, 2024):
Hey, can you ellaborate what you mean by what part?
Thank you!
@wolviex commented on GitHub (Mar 25, 2024):
What part of this configuration are you creating with Nginx Proxy Manager, in the WebUI?
What Docker Image are you using here?