[redirects-web/proxy] Re-add host and proxy_redirect directives



commit e5dbb6925fcc6779f5e2da2a68f8b2134b78467c
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 1 17:29:05 2022 +0100

    Re-add host and proxy_redirect directives

 conf.d/ceph-dashboard.gnome.org.conf | 3 ++-
 conf.d/splunk.gnome.org.conf         | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/conf.d/ceph-dashboard.gnome.org.conf b/conf.d/ceph-dashboard.gnome.org.conf
index a833e96..54b265b 100644
--- a/conf.d/ceph-dashboard.gnome.org.conf
+++ b/conf.d/ceph-dashboard.gnome.org.conf
@@ -9,9 +9,10 @@ server {
     server_name ceph-dashboard.gnome.org;
 
     location / {
-        proxy_set_header Host "ceph-dashboard.gnome.org";
+        proxy_set_header Host $http_host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Host $host;
         proxy_pass https://ceph_dashboard/;
+        proxy_redirect off;
     }
 }
diff --git a/conf.d/splunk.gnome.org.conf b/conf.d/splunk.gnome.org.conf
index 517daad..6206402 100644
--- a/conf.d/splunk.gnome.org.conf
+++ b/conf.d/splunk.gnome.org.conf
@@ -4,8 +4,10 @@ server {
     server_name splunk.gnome.org;
 
     location / {
+        proxy_set_header Host $http_host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Host $host;
         proxy_pass http://vpn.splunk01.gnome.org:8000/;
+        proxy_redirect off;
     }
 }


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