From e9a744e8b7629f3af0511a95b44e10da921fc571 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 3 Oct 2017 10:19:43 +0200 Subject: [PATCH] further clarify config-examples comments per review --- docs/source/reference/config-examples.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/source/reference/config-examples.md b/docs/source/reference/config-examples.md index 128f555e..4e6dbadf 100644 --- a/docs/source/reference/config-examples.md +++ b/docs/source/reference/config-examples.md @@ -117,6 +117,8 @@ The **`nginx` server config file** is fairly standard fare except for the two ```bash # top-level http config for websocket headers +# If Upgrade is defined, Connection = upgrade +# If Upgrade is empty, Connection = close map $http_upgrade $connection_upgrade { default upgrade; '' close; @@ -193,6 +195,7 @@ server { ssl on; # INSERT OTHER SSL PARAMETERS HERE AS ABOVE + # SSL cert may differ # Set the appropriate root directory root /var/www/html @@ -224,7 +227,12 @@ First, we will need to enable the apache modules that we are going to need: a2enmod ssl rewrite proxy proxy_http proxy_wstunnel ``` -Our Apache configuration listes +Our Apache configuration is equivalent to the nginx configuration above: + +- Redirect HTTP to HTTPS +- Good SSL Configuration +- Support for websockets on any proxied URL +- JupyterHub is running locally at http://127.0.0.1:8000 ```bash # redirect HTTP to HTTPS