Skip to content

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

@mcarbonneaux

Description

@mcarbonneaux

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions