[redirects-web] Each vhost on its own conf file
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [redirects-web] Each vhost on its own conf file
- Date: Tue, 1 Feb 2022 15:50:22 +0000 (UTC)
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]