[redirects-web] Land a redirect for projects-old -> projects
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [redirects-web] Land a redirect for projects-old -> projects
- Date: Wed, 8 Jan 2020 16:25:44 +0000 (UTC)
commit 47686abf5d9dee14fa4dc9465366d38d03533dc6
Author: Andrea Veri <averi redhat com>
Date: Wed Jan 8 17:25:58 2020 +0100
Land a redirect for projects-old -> projects
app_data/httpd-cfg/projects-old.gnome.org.conf | 6 ++++++
resources/projects-old.gnome.org.yaml | 17 +++++++++++++++++
2 files changed, 23 insertions(+)
---
diff --git a/app_data/httpd-cfg/projects-old.gnome.org.conf b/app_data/httpd-cfg/projects-old.gnome.org.conf
new file mode 100644
index 0000000..e1bf801
--- /dev/null
+++ b/app_data/httpd-cfg/projects-old.gnome.org.conf
@@ -0,0 +1,6 @@
+<VirtualHost *:8080>
+ ServerName projects-old.gnome.org
+
+ RewriteEngine On
+ RewriteRule ^(.*)$ https://projects.gnome.org$1 [R,L]
+</VirtualHost>
diff --git a/resources/projects-old.gnome.org.yaml b/resources/projects-old.gnome.org.yaml
new file mode 100644
index 0000000..b55431a
--- /dev/null
+++ b/resources/projects-old.gnome.org.yaml
@@ -0,0 +1,17 @@
+apiVersion: route.openshift.io/v1
+kind: Route
+metadata:
+ name: projects-old.gnome.org
+ namespace: redirects-web
+spec:
+ host: projects-old.gnome.org
+ port:
+ targetPort: 8080-tcp
+ tls:
+ insecureEdgeTerminationPolicy: Redirect
+ termination: edge
+ to:
+ kind: Service
+ name: redirects-web
+ weight: 100
+ wildcardPolicy: None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]