Project

General

Profile

How does redirect exclude the specified path?

Added by Anonymous over 4 years ago

hello everyone

lighttpd/1.4.48

os:docker && alpine
my conf:

$HTTP["host"] =~ "(^|www\.)xxx.com" {
server.document-root = "/var/www/xxx/public"
accesslog.filename = "/var/www/xxx/logs/access.log"
}

$HTTP["scheme"] == "http" {
$HTTP["host"] =~ ".*" {
url.redirect += ( ".*" => "https://%0$0" )
}
}

alias.url += ("/.well-known/acme-challenge/" => "/tmp/")

I tried url.redirect = ( "^/do-not-redirect/this/path" => "" ), and I can't prevent redirect to https.

https://serverfault.com/questions/907101/lighttpd-proxy-all-except-well-known-for-letsencrypt and it didn't seem to solve my problem.

I just want to not redirect it to https when the certbot is renewed.