Verified Commit c81d33d1 authored by tyil's avatar tyil

Dont redirect .well-known lookups

parent b201ebf9
Pipeline #151223879 passed with stages
in 2 minutes and 50 seconds
......@@ -16,7 +16,9 @@ include_shell "/usr/local/bin/lighttpd-env.sh"
# Redirect to the "official" domain
$HTTP["host"] != var.intendedHost {
url.redirect = ( "^/(.*)" => var.intendedHostProto + "://" + var.intendedHost + "/$1" )
$HTTP["url"] !~ "^/.well-known" {
url.redirect = ( "^/(.*)" => var.intendedHostProto + "://" + var.intendedHost + "/$1" )
}
}
# Add CORS header for WKP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment