diff --git a/Setup-Reverse-Proxy.md b/Setup-Reverse-Proxy.md index 614e7b7..946168f 100644 --- a/Setup-Reverse-Proxy.md +++ b/Setup-Reverse-Proxy.md @@ -114,3 +114,17 @@ My web.config file looks like this: The crossed out sections aren't needed, they are leftovers from my experiments. +### Lighttpd 1.4 + +Lighttpd 1.4 configuration for a reverse proxy to Calibre-Web to `/calibre-web`: + +The following modules have to be activated: `mod_setenv`, `mod_redirect` and `mod_proxy`. +``` +$HTTP["url"] =~ "^/calibre-web" { + setenv.add-request-header = ( + "X-SCRIPT-NAME" => "/calibre-web", + "X-SCHEME" => "https" + ) + proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "8083" ) ) ) +} +```