Skip to content

Commit bae4a6e

Browse files
author
Till Brehm
committed
Disable the HTTP_PROXY header in the ispconfig and apps vhost files for apache and nginx.
ISPConfig itself does not read nor interpret this header, but there might be other server components like PHP that might interact with it so I'll disable it just to be sure.
1 parent f4719e1 commit bae4a6e

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

install/tpl/apache_apps.vhost.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
SetHandler None
1616
</FilesMatch>
1717

18+
<IfModule mod_headers.c>
19+
RequestHeader unset Proxy early
20+
</IfModule>
21+
1822
<IfModule mod_php5.c>
1923
DocumentRoot {tmpl_var name='apps_vhost_dir'}
2024
AddType application/x-httpd-php .php

install/tpl/apache_ispconfig.vhost.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ NameVirtualHost *:<tmpl_var name="vhost_port">
8282

8383
<IfModule mod_headers.c>
8484
Header always add Strict-Transport-Security "max-age=15768000"
85+
RequestHeader unset Proxy early
8586
</IfModule>
8687

8788
<tmpl_if name='apache_version' op='>=' value='2.3.3' format='version'>

install/tpl/nginx_apps.vhost.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ server {
4040

4141
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
4242
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
43+
fastcgi_param HTTP_PROXY "";
4344

4445
fastcgi_param REMOTE_ADDR $remote_addr;
4546
fastcgi_param REMOTE_PORT $remote_port;

install/tpl/nginx_ispconfig.vhost.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ server {
3636
fastcgi_busy_buffers_size 256k;
3737
fastcgi_temp_file_write_size 256k;
3838
fastcgi_read_timeout 1200;
39+
fastcgi_param HTTP_PROXY "";
3940
}
4041

4142
location ~ /\. {

server/conf/apache_apps.vhost.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<FilesMatch "\.ph(p3?|tml)$">
1515
SetHandler None
1616
</FilesMatch>
17+
18+
<IfModule mod_headers.c>
19+
RequestHeader unset Proxy early
20+
</IfModule>
1721

1822
{tmpl_if name="enable_spdy" op="==" value="y"}
1923
<IfModule spdy_module>

server/conf/nginx_apps.vhost.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ server {
3232

3333
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
3434
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
35+
fastcgi_param HTTP_PROXY "";
3536

3637
fastcgi_param REMOTE_ADDR $remote_addr;
3738
fastcgi_param REMOTE_PORT $remote_port;

0 commit comments

Comments
 (0)