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

Proxy Preserve Host option on Custom Locations and Proxy Hosts #2712

Open
mcarbonneaux opened this issue Mar 19, 2023 · 1 comment
Open

Proxy Preserve Host option on Custom Locations and Proxy Hosts #2712

mcarbonneaux opened this issue Mar 19, 2023 · 1 comment

Comments

@mcarbonneaux
Copy link

mcarbonneaux commented Mar 19, 2023

By default nginx seem to don't preserve the host port (in certain case).

in some case is usefull like in esphome/issues#4327 to preserve the host AND the port.
in apache you have an options to do that ProxyPreserveHost, in nginx you can use http_host variable to that.

in this maner:

proxy_set_header Host $http_host;

https://serverfault.com/questions/706438/what-is-the-difference-between-nginx-variables-host-http-host-and-server-na

it would be possible to add an option (in proxy host and in custom locations) to pass the host as is (with port) in the Nginx Proxy Manager as flag on/off to simplify the usage ?

Copy link

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

@github-actions github-actions bot added the stale label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant