Add reverse proxy examples for Apache .htaccess
This commit is contained in:
parent
03e7e209da
commit
f950ce98ab
@ -348,10 +348,21 @@ RewriteRule ^/radicale$ /radicale/ [R,L]
|
|||||||
<Location "/radicale/">
|
<Location "/radicale/">
|
||||||
ProxyPass http://localhost:5232/ retry=0
|
ProxyPass http://localhost:5232/ retry=0
|
||||||
ProxyPassReverse http://localhost:5232/
|
ProxyPassReverse http://localhost:5232/
|
||||||
RequestHeader set X-Script-Name /radicale/
|
RequestHeader set X-Script-Name /radicale
|
||||||
</Location>
|
</Location>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example **Apache .htaccess** configuration:
|
||||||
|
|
||||||
|
```apache
|
||||||
|
DirectoryIndex disabled
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^(.*)$ http://localhost:5232/$1 [P,L]
|
||||||
|
|
||||||
|
# Set to directory of .htaccess file:
|
||||||
|
RequestHeader set X-Script-Name /radicale
|
||||||
|
```
|
||||||
|
|
||||||
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.
|
||||||
@ -384,18 +395,35 @@ RewriteEngine On
|
|||||||
RewriteRule ^/radicale$ /radicale/ [R,L]
|
RewriteRule ^/radicale$ /radicale/ [R,L]
|
||||||
|
|
||||||
<Location "/radicale/">
|
<Location "/radicale/">
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthName "Radicale - Password Required"
|
AuthName "Radicale - Password Required"
|
||||||
AuthUserFile "/etc/radicale/htpasswd"
|
AuthUserFile "/etc/radicale/htpasswd"
|
||||||
Require valid-user
|
Require valid-user
|
||||||
|
|
||||||
ProxyPass http://localhost:5232/ retry=0
|
ProxyPass http://localhost:5232/ retry=0
|
||||||
ProxyPassReverse http://localhost:5232/
|
ProxyPassReverse http://localhost:5232/
|
||||||
RequestHeader set X-Script-Name /radicale/
|
RequestHeader set X-Script-Name /radicale
|
||||||
RequestHeader set X-Remote-User expr=%{REMOTE_USER}
|
RequestHeader set X-Remote-User expr=%{REMOTE_USER}
|
||||||
</Location>
|
</Location>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example **Apache .htaccess** configuration:
|
||||||
|
|
||||||
|
```apache
|
||||||
|
DirectoryIndex disabled
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^(.*)$ http://localhost:5232/$1 [P,L]
|
||||||
|
|
||||||
|
AuthType Basic
|
||||||
|
AuthName "Radicale - Password Required"
|
||||||
|
AuthUserFile "/etc/radicale/htpasswd"
|
||||||
|
Require valid-user
|
||||||
|
|
||||||
|
# Set to directory of .htaccess file:
|
||||||
|
RequestHeader set X-Script-Name /radicale
|
||||||
|
RequestHeader set X-Remote-User expr=%{REMOTE_USER}
|
||||||
|
```
|
||||||
|
|
||||||
> **Security:** Untrusted clients should not be able to access the Radicale
|
> **Security:** Untrusted clients should not be able to access the Radicale
|
||||||
> server directly. Otherwise, they can authenticate as any user.
|
> server directly. Otherwise, they can authenticate as any user.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user