Ensure lighttpd docs handle doubled-path redirects
This commit is contained in:
@@ -371,7 +371,7 @@ RequestHeader set X-Script-Name /radicale
|
|||||||
Example **lighttpd** configuration:
|
Example **lighttpd** configuration:
|
||||||
|
|
||||||
```lighttpd
|
```lighttpd
|
||||||
server.modules += ( "mod_proxy" , "mod_setenv" )
|
server.modules += ( "mod_proxy" , "mod_setenv", "mod_rewrite" )
|
||||||
|
|
||||||
$HTTP["url"] =~ "^/radicale/" {
|
$HTTP["url"] =~ "^/radicale/" {
|
||||||
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => "5232" )) )
|
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => "5232" )) )
|
||||||
@@ -381,6 +381,7 @@ $HTTP["url"] =~ "^/radicale/" {
|
|||||||
"X-Script-Name" => "/radicale",
|
"X-Script-Name" => "/radicale",
|
||||||
"Script-Name" => "/radicale",
|
"Script-Name" => "/radicale",
|
||||||
)
|
)
|
||||||
|
url.rewrite-once = ( "^/radicale/radicale/(.*)" => "/radicale/$1" )
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user