From e1d048dd8d5da372fc0c8421b6258b5c51656a3a Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Tue, 26 Oct 2021 21:34:32 -0500 Subject: [PATCH] Redirect everything excepting .well-known requests... --- templates/Fedora/34/etc/httpd/conf.d/vhost.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Fedora/34/etc/httpd/conf.d/vhost.conf b/templates/Fedora/34/etc/httpd/conf.d/vhost.conf index c098409..ca7473a 100644 --- a/templates/Fedora/34/etc/httpd/conf.d/vhost.conf +++ b/templates/Fedora/34/etc/httpd/conf.d/vhost.conf @@ -28,7 +28,7 @@ MDStoreDir md ServerAdmin webmaster@{{ item.fqdn }} DocumentRoot /srv/http/{{ item.fqdn }} {% if item.redirect is defined %} - RedirectMatch "^.*$" {{ item.redirect }} + RedirectMatch "^(?!/\.well-known/).*" {{ item.redirect }} {% endif %} @@ -59,7 +59,7 @@ MDomain {{ item.fqdn }} ProxyTimeout 300 {% endif %} {% if item.redirect is defined %} - RedirectMatch "^.*$" {{ item.redirect }} + RedirectMatch "^(?!/\.well-known/).*" {{ item.redirect }} {% endif %} Require all denied