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

[proxy] Add example for Apache

Fixes #760

Signed-off-by: Earl Chew <earl_chew@yahoo.com>
This commit is contained in:
Earl Chew 2017-12-26 12:44:52 -08:00
parent a89030558c
commit cd0504ca03

View file

@ -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]
<Location "/radicale/">
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/
</Location>
```
Be reminded that Radicale's default configuration enforces limits on the Be reminded that Radicale's default configuration enforces limits on the
maximum number of parallel connections, the maximum file size and the rate of maximum number of parallel connections, the maximum file size and the rate of
incorrect authentication attempts. Connections are terminated after a timeout. incorrect authentication attempts. Connections are terminated after a timeout.