From 24624c21e3c6473d525d1c00ae6fd2a8b7bcbb20 Mon Sep 17 00:00:00 2001 From: Chris Olin Date: Thu, 30 Oct 2025 03:05:56 -0400 Subject: [PATCH] lighttpd configuration improvements from firsthand experience --- Proxy-examples.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Proxy-examples.md b/Proxy-examples.md index 69b47d1..af8081b 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -118,9 +118,12 @@ If you prefer, you can also directly specify a value instead of substituting an In this example Vaultwarden will be available via https://shared.example.tld/vault/
If you want to use any other sub-path, like `vaultwarden` or `secret-vault` you should change `vault` in the example below to match.
+You will also need to include the sub-path in the DOMAIN env var value for proxying to work successfully (e.g. DOMAIN: "https://shared.example.tld/vault") + ```lighttpd server.modules += ( -"mod_openssl" +"mod_openssl", +"mod_redirect" ) $SERVER["socket"] == ":443" { @@ -133,7 +136,7 @@ $SERVER["socket"] == ":443" { $SERVER["socket"] == ":80" { $HTTP["host"] =~ "vaultwarden.example.tld" { url.redirect = ( "^/(.*)" => "https://shared.example.tld/$1" ) - server.name = "shared.example.tld" + server.name = "shared.example.tld" } }