From 51f54d2b81230b4a64a1033447dacf8725479d7e Mon Sep 17 00:00:00 2001 From: jummo Date: Sat, 23 May 2020 20:36:20 +0200 Subject: [PATCH] Add Lighttpd 1.4 configuration --- Setup-Reverse-Proxy.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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" ) ) ) +} +```