Просмотр исходного кода

Add reverse proxy example for lighttpd

Rob Pilling 4 лет назад
Родитель
Сommit
d3b78e0246
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      DOCUMENTATION.md

+ 16 - 0
DOCUMENTATION.md

@@ -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.