lighttpd proxy all except .well-known for letsencrypt
$HTTP["url"] !~ "^/.well-known/(.*)" {
$SERVER["socket"] == ":443" {
$HTTP["host"] == "myvhost.com" {
ssl.pemfile = "/etc/letsencrypt/live/myvhost.com/ssl.pem"
ssl.ca-file = "/etc/letsencrypt/live/myvhost.com/fullchain.pem"
proxy.server = (
"" => (( "host" => "127.0.0.1", "port" => 3334 ))
)
}
}
$HTTP["scheme"] == "http" {
$HTTP["host"] =~ "myvhost.com" {
url.redirect = (".*" => "https://%0$0")
}
}
}