Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NginxProxyManager/nginx-proxy-manager
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: vbraun/nginx-proxy-manager
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 8, 2023

  1. Host should be $proxy_host, not $host

    * $host is the Host sent by the user's browser. This is the correct
      setting if the service has built-in support for being proxied.
    
    * $proxy_host is the Host as if the browser would run on the
      proxy. This is the correct setting if the service does not have
      built-in support for reverse proxies. It is also the nginx default.
    
    * In nginx, you cannot unset the Host header. Configuring headers
      multiple times just sends multiple values with the http request. So
      there is no way to "fix" the Host by adding a custom header if it is
      already set.
    
    For these reasons, Host should not be set (and default to
    $proxy_host). In the unlikely case that your service needs something
    else you can then just set the header in the GUI.
    
    Fixes #2675
    vbraun committed Oct 8, 2023
    Configuration menu
    Copy the full SHA
    0a4b2af View commit details
    Browse the repository at this point in the history
Loading