[redirects-web] Exclude letsencrypt from the catch all redirect



commit 07ba6614efefceebd27f75478543a427d8ae9483
Author: Andrea Veri <averi redhat com>
Date:   Tue Sep 15 17:53:23 2020 +0200

    Exclude letsencrypt from the catch all redirect

 app_data/httpd-cfg/2020.gnome.asia.conf | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app_data/httpd-cfg/2020.gnome.asia.conf b/app_data/httpd-cfg/2020.gnome.asia.conf
index e7b9c71..f0f3bb1 100644
--- a/app_data/httpd-cfg/2020.gnome.asia.conf
+++ b/app_data/httpd-cfg/2020.gnome.asia.conf
@@ -1,7 +1,8 @@
 <VirtualHost *:8080>
    ServerName 2020.gnome.asia
-   
-   RedirectPermanent / https://events.gnome.org/event/24 
+
+   RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
+   RewriteRule ^(.*) https://events.gnome.org/event/24 [R=301]
 </VirtualHost>
 
 <LocationMatch "^/.well-known/acme-challenge">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]