[redirects-web] Each vhost on its own conf file



commit 17b96a78d4f952344773c9aa602b79f2000cde42
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 1 16:50:14 2022 +0100

    Each vhost on its own conf file

 app_data/httpd-cfg/lists.gnome.gr.conf                   | 12 ++++++++++++
 app_data/httpd-cfg/{gnome.gr.conf => wiki.gnome.gr.conf} | 13 -------------
 2 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/app_data/httpd-cfg/lists.gnome.gr.conf b/app_data/httpd-cfg/lists.gnome.gr.conf
new file mode 100644
index 0000000..4d8faa4
--- /dev/null
+++ b/app_data/httpd-cfg/lists.gnome.gr.conf
@@ -0,0 +1,12 @@
+<VirtualHost *:8080>
+    ServerName lists.gnome.gr
+
+    RewriteEngine on
+    RewriteCond %{HTTPS} on
+    RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge
+    RewriteRule ^/(.*)$ https://www.gnome.gr/$1 [R=302,L]
+
+    <LocationMatch "^/.well-known/acme-challenge">
+      RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+    </LocationMatch>
+</VirtualHost>
diff --git a/app_data/httpd-cfg/gnome.gr.conf b/app_data/httpd-cfg/wiki.gnome.gr.conf
similarity index 66%
rename from app_data/httpd-cfg/gnome.gr.conf
rename to app_data/httpd-cfg/wiki.gnome.gr.conf
index eb41c56..a3dd33f 100644
--- a/app_data/httpd-cfg/gnome.gr.conf
+++ b/app_data/httpd-cfg/wiki.gnome.gr.conf
@@ -1,16 +1,3 @@
-<VirtualHost *:8080>
-    ServerName lists.gnome.gr
-
-    RewriteEngine on
-    RewriteCond %{HTTPS} on
-    RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge
-    RewriteRule ^/(.*)$ https://www.gnome.gr/$1 [R=302,L]
-
-    <LocationMatch "^/.well-known/acme-challenge">
-      RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
-    </LocationMatch>
-</VirtualHost>
-
 <VirtualHost *:8080>
    ServerName wiki.gnome.gr
 


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