[redirects-web/proxy] Properly handle the Jhbuild rewrite



commit 09351e0b85d00cdbcd8ebe77a433aee6b2e68c4c
Author: Andrea Veri <averi redhat com>
Date:   Fri Jul 30 15:40:45 2021 +0200

    Properly handle the Jhbuild rewrite

 conf.d/developer.gnome.org.conf | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/conf.d/developer.gnome.org.conf b/conf.d/developer.gnome.org.conf
index de6e0ba..e4b1cb5 100644
--- a/conf.d/developer.gnome.org.conf
+++ b/conf.d/developer.gnome.org.conf
@@ -7,12 +7,14 @@ server {
         proxy_set_header Host teams.pages.gitlab.gnome.org;
         proxy_set_header X-Forwarded-Host "";
 
-        rewrite https://developer.gnome.org/Jhbuild/ https://wiki.gnome.org/Projects/Jhbuild/Introduction 
last;
-
         proxy_redirect //teams.pages.gitlab.gnome.org/documentation/developer-www/ 
https://developer.gnome.org/;
         proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
     }
 
+    location /Jhbuild {
+        return 301 https://wiki.gnome.org/Projects/Jhbuild/Introduction;
+    }
+
     location /platform-overview/unstable {
         proxy_set_header Host teams.pages.gitlab.gnome.org;
         proxy_set_header X-Forwarded-Host "";


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