1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Add reverse proxy example for lighttpd

This commit is contained in:
Rob Pilling 2021-04-18 20:45:19 +01:00
parent d7ce2f0b98
commit d3b78e0246

View file

@ -368,6 +368,22 @@ RewriteRule ^(.*)$ http://localhost:5232/$1 [P,L]
RequestHeader set X-Script-Name /radicale
```
Example **lighttpd** configuration:
```lighttpd
server.modules += ( "mod_proxy" , "mod_setenv" )
$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",
)
}
```
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.