nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Location directive ( location /{ ) causing proxy host to land at openresty landing page

Open cirnoscodingclass opened this issue 1 year ago • 17 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug When working under the Advanced tab of Edit Proxy Host I place the following addition to the config dialogue box

location / {
   proxy_set_header Host $http_host;
   proxy_set_header X-Forwarded-Host $http_host;
   proxy_set_header X-Forwarded-Port $server_port;
   proxy_set_header X-Forwarded-Proto $scheme;
   proxy_set_header X-Forwarded-For $remote_addr;
}

When this is added my sites redirects me to this screen

I have also tried to use =/ in front of the location directive but none of my changes appear to register. Also tried to add this configuration in the Custom locations tab but this shuts down the proxy host.

Adding the lines directly to the proxy_host .conf file causes the proxy_host to go offline.

Nginx Proxy Manager Version 2.11.1

Expected behavior For the headers to be applied to the location directive without redirecting traffic to the openresty page.

Screenshots Screenshot from 2024-04-03 21-03-36

Operating System Debian 12 Bookworm

Additional context I am trying run danbooru, the SSL certificate is DNS challenged by cloudflare

Docker Engine - Community
 Version:           26.0.0
 API version:       1.45
 Go version:        go1.21.8
 Git commit:        2ae903e

cirnoscodingclass avatar Apr 04 '24 01:04 cirnoscodingclass

Same issue here

  • image: 'jc21/nginx-proxy-manager:2.10.4'. Works
  • image: 'jc21/nginx-proxy-manager:2.11.0' Don't works

Bildschirmfoto 2024-04-04 um 19 21 37 Bildschirmfoto 2024-04-04 um 19 17 12 Bildschirmfoto 2024-04-04 um 19 17 45

unixweb avatar Apr 04 '24 17:04 unixweb

@unixweb Did you tested in the version 2.11.1?

delsonffilho avatar Apr 12 '24 12:04 delsonffilho

@delsonffilho I can confirm this also happens on 2.11.1. I was pulling my hairs out trying to figure out what I broke

barrelltitor avatar Apr 15 '24 14:04 barrelltitor

I tested on 2.10.4 and it works.

delsonffilho avatar Apr 15 '24 16:04 delsonffilho

I can confirm the problem with version > 2.10.x (running container from official image on Arch with rootless podman)

Hint: I noticed that whenever I tried to set up a custom location for a proxy host in 2.11.x, the config file associated with the edited host was removed from nginx/proxy_hosts. At the same time entry in database appears to be intact, since the host is still listed and remains editable with no data loss, but goes “Offline” as some previous commenters indicated.

thebodzio avatar Apr 17 '24 00:04 thebodzio

@unixweb Did you tested in the version 2.11.1?

Yes ...

unixweb avatar Apr 17 '24 08:04 unixweb

can confirm 2.10.4 works

custom location in 2.11.1 seems to be broken

s0mm3rb avatar Apr 25 '24 13:04 s0mm3rb

can confirm 2.10.4 works

custom location in 2.11.1 seems to be broken

Confirm, same issue with latest version goes back to 2.10.4

masterwishx avatar Apr 26 '24 19:04 masterwishx

At least for me, 2.11.2 seems to have fixed the issues with custom locations!

irrwitzer42 avatar May 02 '24 13:05 irrwitzer42

2.11.2 not working, send me to openresty

tosolini avatar May 04 '24 07:05 tosolini

Broken for 2.11.1 and 2.11.2 whilst 2.11.1 was fully broken, 2.11.2 now just sends to blank page.

Babyyoda777 avatar May 07 '24 17:05 Babyyoda777

Can confirm, also having this issue. Running on v2.11.2

StuFrankish avatar May 29 '24 19:05 StuFrankish

same issue. nginx proxy manager is broken v2.12.1

Error "Could not delete file:" occurs only when setting ssl for a domain in the gui.

wakawakaaa avatar Nov 19 '24 20:11 wakawakaaa

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar May 23 '25 02:05 github-actions[bot]

👍

barrelltitor avatar May 23 '25 17:05 barrelltitor

The stale bot is probably the silliest thing people do on github. No developer wants to tackle fixing it, so let's just close it huh?

barrelltitor avatar May 23 '25 17:05 barrelltitor

Anything new about it ? I had to downgrade my security level by removing headers so it's a real concern.

wolicape avatar Jun 16 '25 18:06 wolicape

2025.09 this bug is still affecting everyone, unbelievably.

AjianNie avatar Sep 21 '25 15:09 AjianNie