[GH-ISSUE #1609] proxy_set_header X-Forwarded-Host is missing in conf.d/proxy.conf #1207

Closed
opened 2026-02-26 06:36:13 +03:00 by kerem · 0 comments
Owner

Originally created by @Yasamato on GitHub (Nov 24, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1609

I would highly encourage to include the header X-Forwarded-Host in the default proxy.conf file.

This proxy header is used to let servers now what domain they are being proxied for and even required by some applications like Authelia (their provided example conf for Nginx).

If you want to read more, head to the documentation from mozilla: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host

Workaround with the current version would be to insert an advanced configuration in the web ui:

location / {
  # Proxy!
  include conf.d/include/proxy.conf;
  proxy_set_header  X-Forwarded-Host $host;
}
Originally created by @Yasamato on GitHub (Nov 24, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1609 I would highly encourage to include the header `X-Forwarded-Host` in the default `proxy.conf` file. This proxy header is used to let servers now what domain they are being proxied for and even required by some applications like [Authelia](https://www.authelia.com) (their provided [example conf](https://www.authelia.com/docs/deployment/supported-proxies/nginx.html#proxyconf) for Nginx). If you want to read more, head to the documentation from mozilla: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host Workaround with the current version would be to insert an advanced configuration in the web ui: ``` location / { # Proxy! include conf.d/include/proxy.conf; proxy_set_header X-Forwarded-Host $host; } ```
kerem 2026-02-26 06:36:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1207
No description provided.