fix lighttpd example
This commit is contained in:
@@ -476,17 +476,11 @@ RequestHeader set X-Forwarded-Proto "https"
|
|||||||
Example **lighttpd** configuration:
|
Example **lighttpd** configuration:
|
||||||
|
|
||||||
```lighttpd
|
```lighttpd
|
||||||
server.modules += ( "mod_proxy" , "mod_setenv", "mod_rewrite" )
|
server.modules += ( "mod_proxy" , "mod_setenv" )
|
||||||
|
|
||||||
$HTTP["url"] =~ "^/radicale/" {
|
$HTTP["url"] =~ "^/radicale/" {
|
||||||
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => "5232" )) )
|
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => "5232" )) )
|
||||||
proxy.header = ( "map-urlpath" => ( "/radicale/" => "/" ))
|
setenv.add-request-header = ( "X-Script-Name" => "/radicale" )
|
||||||
|
|
||||||
setenv.add-request-header = (
|
|
||||||
"X-Script-Name" => "/radicale",
|
|
||||||
"Script-Name" => "/radicale",
|
|
||||||
)
|
|
||||||
url.rewrite-once = ( "^/radicale/radicale/(.*)" => "/radicale/$1" )
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user