[redirects-web/proxy] proxy_pass needed once if the backend matches for all locations?



commit b61f1b503e5be471012992189e6ea9aaca9eade8
Author: Andrea Veri <averi redhat com>
Date:   Fri Jul 30 13:55:19 2021 +0200

    proxy_pass needed once if the backend matches for all locations?

 conf.d/developer.gnome.org.conf | 104 ----------------------------------------
 1 file changed, 104 deletions(-)
---
diff --git a/conf.d/developer.gnome.org.conf b/conf.d/developer.gnome.org.conf
index 9b2a0dc..ec99752 100644
--- a/conf.d/developer.gnome.org.conf
+++ b/conf.d/developer.gnome.org.conf
@@ -12,210 +12,106 @@ server {
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 
     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;
     } 
 }


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