[redirects-web] Add redirects for guadec.org and pango.org



commit ba0fc145f85ba4a079a6d83f098a4793e5d783ea
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 1 16:06:39 2022 +0100

    Add redirects for guadec.org and pango.org

 app_data/httpd-cfg/guadec.org.conf | 16 ++++++++++++++++
 app_data/httpd-cfg/pango.org.conf  | 13 +++++++++++++
 2 files changed, 29 insertions(+)
---
diff --git a/app_data/httpd-cfg/guadec.org.conf b/app_data/httpd-cfg/guadec.org.conf
new file mode 100644
index 0000000..83766a6
--- /dev/null
+++ b/app_data/httpd-cfg/guadec.org.conf
@@ -0,0 +1,16 @@
+<VirtualHost *:8080>
+  ServerName guadec.org
+  ServerAlias www.guadec.org
+
+  RewriteEngine on
+  RewriteCond %{HTTP_HOST} ^www.guadec.org
+  RewriteRule /(.*) https://events.gnome.org/event/9/ [R=302,L]
+
+  RewriteCond %{HTTP_HOST} ^guadec.org
+  RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge
+  RewriteRule /(.*) https://events.gnome.org/event/9/ [R=302,L]
+
+  <LocationMatch "^/.well-known/acme-challenge">
+   RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+  </LocationMatch>
+</VirtualHost>
diff --git a/app_data/httpd-cfg/pango.org.conf b/app_data/httpd-cfg/pango.org.conf
new file mode 100644
index 0000000..1486c60
--- /dev/null
+++ b/app_data/httpd-cfg/pango.org.conf
@@ -0,0 +1,13 @@
+<VirtualHost *:8080>
+   ServerName pango.org
+   ServerAlias www.pango.org
+   ServerAlias wiki.pango.org
+
+   RewriteEngine on
+   RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge
+   RewriteRule (.*) https://pango.gnome.org [R,L]
+
+   <LocationMatch "^/.well-known/acme-challenge">
+     RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+   </LocationMatch>
+</VirtualHost>


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