mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Conditionally substitute $http_host for $host.
Necessary when using non-standard port. Closes #1457.
This commit is contained in:
@@ -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
|
`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
|
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
|
on the same machine and network interface. In fact, one can simply use the same
|
||||||
|
Reference in New Issue
Block a user