Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cirnoscodingclass opened this issue Apr 4, 2024 · 13 comments
Labels

Comments

@cirnoscodingclass
Copy link

cirnoscodingclass commented Apr 4, 2024

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
@unixweb
Copy link

unixweb commented Apr 4, 2024

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

@delsonffilho
Copy link

@unixweb Did you tested in the version 2.11.1?

@barrelltitor
Copy link

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

@delsonffilho
Copy link

I tested on 2.10.4 and it works.

@thebodzio
Copy link

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.

@unixweb
Copy link

unixweb commented Apr 17, 2024

@unixweb Did you tested in the version 2.11.1?

Yes ...

@s0mm3rb
Copy link

s0mm3rb commented Apr 25, 2024

can confirm 2.10.4 works

custom location in 2.11.1 seems to be broken

@masterwishx
Copy link

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

@irrwitzer42
Copy link

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

@tosolini
Copy link

tosolini commented May 4, 2024

2.11.2 not working, send me to openresty

@Babyyoda777
Copy link

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.

@StuFrankish
Copy link

StuFrankish commented May 29, 2024

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

@wakawakaaa
Copy link

wakawakaaa commented Nov 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests