lighttpd configuration improvements from firsthand experience

Chris Olin
2025-10-30 03:05:56 -04:00
parent 8340cf0f69
commit 24624c21e3

@@ -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/<br/>
If you want to use any other sub-path, like `vaultwarden` or `secret-vault` you should change `vault` in the example below to match.<br/>
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"
}
}