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

Merge pull request #1161 from bobrippling/master

Add reverse proxy example for lighttpd, touches only `DOCUMENTATION.md`
This commit is contained in:
Peter Bieringer 2024-03-01 06:12:33 +01:00 committed by GitHub
commit f64488b918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -368,6 +368,23 @@ RewriteRule ^(.*)$ http://localhost:5232/$1 [P,L]
RequestHeader set X-Script-Name /radicale
```
Example **lighttpd** configuration:
```lighttpd
server.modules += ( "mod_proxy" , "mod_setenv", "mod_rewrite" )
$HTTP["url"] =~ "^/radicale/" {
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => "5232" )) )
proxy.header = ( "map-urlpath" => ( "/radicale/" => "/" ))
setenv.add-request-header = (
"X-Script-Name" => "/radicale",
"Script-Name" => "/radicale",
)
url.rewrite-once = ( "^/radicale/radicale/(.*)" => "/radicale/$1" )
}
```
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.