From cd0504ca0337bc3fea08c35dfffd5ebd857d51b0 Mon Sep 17 00:00:00 2001 From: Earl Chew Date: Tue, 26 Dec 2017 12:44:52 -0800 Subject: [PATCH] [proxy] Add example for Apache Fixes #760 Signed-off-by: Earl Chew --- proxy.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/proxy.md b/proxy.md index de9d4562..f49736fb 100644 --- a/proxy.md +++ b/proxy.md @@ -18,6 +18,28 @@ 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" + Require valid-user + + ProxyPass http://localhost:5232/ retry=0 + ProxyPassReverse http://localhost:5232/ + RequestHeader set X-SCRIPT-NAME /radicale/ + +``` + Be reminded that Radicale's default configuration enforces limits on the maximum number of parallel connections, the maximum file size and the rate of incorrect authentication attempts. Connections are terminated after a timeout.