1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Apache example: simplify

This commit is contained in:
Unrud 2018-04-21 10:11:50 +02:00
parent 91429db198
commit e608eca4d3

View file

@ -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]
<Location "/radicale/">
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}
</Location>
```