Conditionally substitute $http_host for $host.

Necessary when using non-standard port. Closes #1457.
This commit is contained in:
Ryan Lovett
2017-09-28 09:40:51 -07:00
committed by GitHub
parent f79b71727b
commit b956190393

View File

@@ -167,6 +167,9 @@ server {
}
```
If `nginx` is not running on port 443, substitute `$http_host` for `$host` on
the lines setting the `Host` header.
`nginx` will now be the front facing element of JupyterHub on `443` which means
it is also free to bind other servers, like `NO_HUB.DOMAIN.TLD` to the same port
on the same machine and network interface. In fact, one can simply use the same