[redirects-web/proxy] Should be host (in this order of precedence: host name from the request line, or host name from the



commit d1f5ebd7eaf6b2318e1844460272a66c7e5392d7
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 1 17:39:13 2022 +0100

    Should be host (in this order of precedence: host name from the request line, or host name from the 
“Host” request header field, or the server name matching a request)

 conf.d/ceph-dashboard.gnome.org.conf | 2 +-
 conf.d/ceph-metrics.gnome.org.conf   | 2 +-
 conf.d/letsencrypt.gnome.org.conf    | 1 +
 conf.d/splunk.gnome.org.conf         | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/conf.d/ceph-dashboard.gnome.org.conf b/conf.d/ceph-dashboard.gnome.org.conf
index 5593aa1..762b3b5 100644
--- a/conf.d/ceph-dashboard.gnome.org.conf
+++ b/conf.d/ceph-dashboard.gnome.org.conf
@@ -11,7 +11,7 @@ server {
     resolver 172.31.2.9 172.31.2.33;
 
     location / {
-        proxy_set_header Host $http_host;
+        proxy_set_header Host $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Host $host;
         proxy_pass https://ceph_dashboard/;
diff --git a/conf.d/ceph-metrics.gnome.org.conf b/conf.d/ceph-metrics.gnome.org.conf
index 88c8382..c33e01a 100644
--- a/conf.d/ceph-metrics.gnome.org.conf
+++ b/conf.d/ceph-metrics.gnome.org.conf
@@ -4,7 +4,7 @@ server {
     server_name ceph-metrics.gnome.org grafana.gnome.org;
 
     location / {
-        proxy_set_header Host $http_host;
+        proxy_set_header Host $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Host $host; 
         proxy_pass https://vpn.ceph-metrics.gnome.org:3000;
diff --git a/conf.d/letsencrypt.gnome.org.conf b/conf.d/letsencrypt.gnome.org.conf
index 1af351e..8586de4 100644
--- a/conf.d/letsencrypt.gnome.org.conf
+++ b/conf.d/letsencrypt.gnome.org.conf
@@ -4,6 +4,7 @@ server {
     server_name letsencrypt.gnome.org;
 
     location / {
+        proxy_set_header Host $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Host $host;
         proxy_pass http://vpn.puppetmaster01.gnome.org;
diff --git a/conf.d/splunk.gnome.org.conf b/conf.d/splunk.gnome.org.conf
index 6206402..e8cfd0d 100644
--- a/conf.d/splunk.gnome.org.conf
+++ b/conf.d/splunk.gnome.org.conf
@@ -4,7 +4,7 @@ server {
     server_name splunk.gnome.org;
 
     location / {
-        proxy_set_header Host $http_host;
+        proxy_set_header Host $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/;


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