[redirects-web/proxy] Drop trailing slash to allow REQUEST_URIs to pass on



commit a7fcca3b96c61ec93197669e974d10ecb2f43a86
Author: Andrea Veri <averi redhat com>
Date:   Fri Jul 30 15:15:55 2021 +0200

    Drop trailing slash to allow REQUEST_URIs to pass on

 conf.d/developer.gnome.org.conf | 108 ++++++++++++++++++++--------------------
 1 file changed, 54 insertions(+), 54 deletions(-)
---
diff --git a/conf.d/developer.gnome.org.conf b/conf.d/developer.gnome.org.conf
index 8c0d623..9618d77 100644
--- a/conf.d/developer.gnome.org.conf
+++ b/conf.d/developer.gnome.org.conf
@@ -7,6 +7,8 @@ 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/;
     }
@@ -19,213 +21,211 @@ server {
         proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /guides/ {
+    location /guides {
         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/guidelines.html 
https://developer.gnome.org/guides/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /AlternateMenubarLayout/ {
+    location /AlternateMenubarLayout {
         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/tutorials.html 
https://developer.gnome.org/AlternateMenubarLayout/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /AppFolders/ {
+    location /AppFolders {
         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/tutorials.html 
https://developer.gnome.org/AppFolders/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /ChooseApplicationID/ {
+    location /ChooseApplicationID {
         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/tutorials/application-id.html 
https://developer.gnome.org/ChooseApplicationID/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /Buttons/ {
+    location /Buttons {
         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/tutorials.html 
https://developer.gnome.org/Buttons/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /CustomStyle/ {
+    location /CustomStyle {
         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/tutorials.html 
https://developer.gnome.org/CustomStyle/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /Deprecations/ {
+    location /Deprecations {
         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/tutorials/deprecations.html 
https://developer.gnome.org/Deprecations/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /DragAndDrop/ {
+    location /DragAndDrop {
         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/tutorials.html 
https://developer.gnome.org/DragAndDrop/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /Dialogs/ {
+    location /Dialogs {
         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/tutorials.html 
https://developer.gnome.org/Dialogs/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /ExtractShell/ {
+    location /ExtractShell {
         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/tutorials.html 
https://developer.gnome.org/ExtractShell/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /GAction/ {
+    location /GAction {
         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/tutorials/actions.html 
https://developer.gnome.org/GAction/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /GNotification/ {
+    location /GNotification {
         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/tutorials/notifications.html 
https://developer.gnome.org/GNotification/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /Gestures/ {
+    location /Gestures {
         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/tutorials.html 
https://developer.gnome.org/Gestures/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /CommandLine/ {
+    location /CommandLine {
         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/tutorials.html 
https://developer.gnome.org/CommandLine/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /ClutterGstGirPython/ {
+    location /ClutterGstGirPython {
         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/tutorials.html 
https://developer.gnome.org/ClutterGstGirPython/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /Labels/ {
+    location /Labels {
         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/tutorials.html 
https://developer.gnome.org/Labels/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /ApplicationMenu/ {
+    location /ApplicationMenu {
         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/tutorials.html 
https://developer.gnome.org/ApplicationMenu/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /SaveWindowState/ {
+    location /SaveWindowState {
         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/tutorials/save-state.html 
https://developer.gnome.org/SaveWindowState/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /SearchProvider/ {
+    location /SearchProvider {
         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/tutorials/search-provider.html 
https://developer.gnome.org/SearchProvider/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /DBusApplicationLaunching/ {
+    location /DBusApplicationLaunching {
         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/tutorials.html 
https://developer.gnome.org/DBusApplicationLaunching/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /SubclassGObject/ {
+    location /SubclassGObject {
         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/tutorials.html 
https://developer.gnome.org/SubclassGObject/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /ThemedIcons/ {
+    location /ThemedIcons {
         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/tutorials/themed-icons.html 
https://developer.gnome.org/ThemedIcons/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /GMenu/ {
+    location /GMenu {
         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/tutorials/menus.html 
https://developer.gnome.org/GMenu/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /GSettings/ {
+    location /GSettings {
         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/tutorials.html 
https://developer.gnome.org/GSettings/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /GtkApplication/ {
+    location /GtkApplication {
         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/tutorials/application.html 
https://developer.gnome.org/GtkApplication/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/documentation/developer-www;
     }
 
-    location /hig/stable/ {
+    location /hig/stable {
         proxy_set_header Host teams.pages.gitlab.gnome.org;
         proxy_set_header X-Forwarded-Host "";
 
         proxy_redirect //teams.pages.gitlab.gnome.org/Design/hig-www/ 
https://developer.gnome.org/hig/stable/;
-        proxy_pass https://teams.pages.gitlab.gnome.org/Design/hig-www/;
+        proxy_pass https://teams.pages.gitlab.gnome.org/Design/hig-www;
     }
-
-    rewrite https://developer.gnome.org/Jhbuild/ https://wiki.gnome.org/Projects/Jhbuild/Introduction last;
 }


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