From d9eecc056809183ecdaa663518046163e9b6e22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Ka=CC=88ser?= Date: Wed, 12 Aug 2015 00:53:00 +0200 Subject: [PATCH] additional Nginx proxy header fixes --- lib/confs/nginx/ipynbsrv.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/confs/nginx/ipynbsrv.conf b/lib/confs/nginx/ipynbsrv.conf index 3dc84d6..c2bca92 100644 --- a/lib/confs/nginx/ipynbsrv.conf +++ b/lib/confs/nginx/ipynbsrv.conf @@ -80,11 +80,13 @@ server { proxy_send_timeout 86400s; proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Protocol $scheme; + proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; - proxy_set_header X-Script-Name /$1/; + proxy_set_header X-Script-Name /ct/$1; proxy_pass http://$decoded_backend; }