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:
parent
d7ce2f0b98
commit
d3b78e0246
1 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue