From 000d2c560c256769b17219bfa50d060779546ec9 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Jul 2016 15:43:04 +0200 Subject: [PATCH] do not pass proxy header in example config (httpoxy) --- etc/apache2/pandora.conf | 2 ++ etc/nginx/pandora | 2 ++ 2 files changed, 4 insertions(+) diff --git a/etc/apache2/pandora.conf b/etc/apache2/pandora.conf index d2903f7b..a7ef38bf 100644 --- a/etc/apache2/pandora.conf +++ b/etc/apache2/pandora.conf @@ -28,6 +28,8 @@ ProxyPass /data ! ProxyPass /.bzr ! + RequestHeader unset Proxy + Alias /.bzr /srv/pandora/.bzr Alias /static /srv/pandora/static Alias /favicon.ico /srv/pandora/static/favicon.ico diff --git a/etc/nginx/pandora b/etc/nginx/pandora index ad7541ff..2c64e496 100644 --- a/etc/nginx/pandora +++ b/etc/nginx/pandora @@ -39,6 +39,7 @@ server { proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + proxy_set_header Proxy ""; proxy_redirect off; proxy_buffering off; proxy_read_timeout 999999999; @@ -49,6 +50,7 @@ server { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto http; proxy_set_header Host $http_host; + proxy_set_header Proxy ""; proxy_redirect off; proxy_buffering off; proxy_read_timeout 90; #should be in sync with gunicorn timeout