[redirects-web/proxy] Rewrite instead of proxy_pass on the same location which already contains a proxy_pass against our d



commit f9e524eb5258cee2701beeb097052e3382a25f2b
Author: Andrea Veri <averi redhat com>
Date:   Fri Jul 30 14:41:28 2021 +0200

    Rewrite instead of proxy_pass on the same location which already contains a proxy_pass against our 
desired backend

 conf.d/developer.gnome.org.conf | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/conf.d/developer.gnome.org.conf b/conf.d/developer.gnome.org.conf
index 56fc313..365974c 100644
--- a/conf.d/developer.gnome.org.conf
+++ b/conf.d/developer.gnome.org.conf
@@ -9,14 +9,8 @@ server {
 
         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 /platform-overview/unstable/ {
-        proxy_set_header Host teams.pages.gitlab.gnome.org;
-        proxy_set_header X-Forwarded-Host "";
-
-        proxy_redirect 
//teams.pages.gitlab.gnome.org/documentation/developer-www/documentation/introduction.html 
https://developer.gnome.org/platform-overview/unstable/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        rewrite ^/platform-overview/unstable$ /documentation/introduction.html last; 
     }
 
     location /guides/ {


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