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:
parent
91429db198
commit
e608eca4d3
1 changed files with 3 additions and 8 deletions
11
proxy.md
11
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]
|
||||
|
||||
<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>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue