From e608eca4d3371037d4a5dd23fef6520cc699893f Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 21 Apr 2018 10:11:50 +0200 Subject: [PATCH] Apache example: simplify --- proxy.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/proxy.md b/proxy.md index 11ab4a3f..4f5a397f 100644 --- a/proxy.md +++ b/proxy.md @@ -20,23 +20,18 @@ location /radicale/ { # The trailing / is important! Example **Apache** configuration using front end authentication: ```apache -## https://www.nginx.com/resources/wiki/start/topics/examples/likeapache/ -## -## See proxy-chain-auth if authentication is performed on the back end - RewriteEngine On RewriteRule ^/radicale$ /radicale/ [R,L] AuthType Basic - AuthName "Authentication Required" - AuthUserFile "/etc/radicale/passwd" - AuthGroupFile "/etc/radicale/group" + AuthName "Radicale - Password Required" + AuthUserFile "/etc/radicale/htpasswd" Require valid-user ProxyPass http://localhost:5232/ retry=0 ProxyPassReverse http://localhost:5232/ - RequestHeader set X-SCRIPT-NAME /radicale/ + RequestHeader set X-Script-Name /radicale/ RequestHeader set X-Remote-User expr=%{REMOTE_USER} ```