From cdeabe1b3f786335736cb0f445a5196525f3f6b8 Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 1 Jun 2017 10:25:31 +0200 Subject: [PATCH] Improve nginx example --- proxy.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/proxy.md b/proxy.md index aa5b215c..97d4f4b8 100644 --- a/proxy.md +++ b/proxy.md @@ -10,9 +10,11 @@ from the URL path that is forwarded to Radicale. Example **nginx** configuration: ```nginx -location /sub/folder/radicale { - proxy_pass localhost:5232/; # The / is important! - proxy_set_header X-Script-Name /sub/folder/radicale; +location /radicale/ { # The trailing / is important! + proxy_pass http://localhost:5232/; # The / is important! + proxy_set_header X-Script-Name /radicale; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass_header Authorization; } ```