From ec9b24499071a646c978496217536a458d90aa50 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 4 Jun 2018 11:10:21 +0200 Subject: [PATCH 1/2] note where nginx config files are typically created. --- docs/source/reference/config-proxy.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/reference/config-proxy.md b/docs/source/reference/config-proxy.md index fadebeed..dd8d0c44 100644 --- a/docs/source/reference/config-proxy.md +++ b/docs/source/reference/config-proxy.md @@ -31,7 +31,8 @@ openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096 ## nginx The **`nginx` server config file** is fairly standard fare except for the two -`location` blocks within the `HUB.DOMAIN.TLD` config file: +`location` blocks within the `HUB.DOMAIN.TLD` config file, +e.g. by creating the file `/etc/nginx/sites.enabled/jupyterhub.conf`: ```bash # top-level http config for websocket headers From ead13c6a11bf179194f7f792ac8c0eee41f30d46 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 6 Jun 2018 12:00:21 +0200 Subject: [PATCH 2/2] further clarify that we are creating a new file, not editing nginx.confg --- docs/source/reference/config-proxy.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/source/reference/config-proxy.md b/docs/source/reference/config-proxy.md index dd8d0c44..093d4ee2 100644 --- a/docs/source/reference/config-proxy.md +++ b/docs/source/reference/config-proxy.md @@ -30,9 +30,10 @@ openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096 ## nginx -The **`nginx` server config file** is fairly standard fare except for the two -`location` blocks within the `HUB.DOMAIN.TLD` config file, -e.g. by creating the file `/etc/nginx/sites.enabled/jupyterhub.conf`: +This **`nginx` config file** is fairly standard fare except for the two +`location` blocks within the main section for HUB.DOMAIN.tld. +To create a new site for jupyterhub in your nginx config, make a new file +in `sites.enabled`, e.g. `/etc/nginx/sites.enabled/jupyterhub.conf`: ```bash # top-level http config for websocket headers