From c81d33d15cf953d2d34e56c809f8cbd2d9e54646 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Sat, 30 May 2020 21:38:59 +0200
Subject: Dont redirect .well-known lookups
---
.docker/lighttpd.conf | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to '.docker/lighttpd.conf')
diff --git a/.docker/lighttpd.conf b/.docker/lighttpd.conf
index 05ce81c..1b480ca 100644
--- a/.docker/lighttpd.conf
+++ b/.docker/lighttpd.conf
@@ -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
--
cgit v1.1