aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache_mod_security
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-24 14:55:06 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-24 14:55:06 -0400
commit74a9fe399045af40708cd9ddb9f9f272f4d7cecf (patch)
treeb7e3601c367144eb56a8fb1b22094dc4858ba7da /config/apache_mod_security
parent687cc9d37d0e725a3b4c03b6d964fd3bcb6e7ee0 (diff)
downloadpfsense-packages-74a9fe399045af40708cd9ddb9f9f272f4d7cecf.tar.gz
pfsense-packages-74a9fe399045af40708cd9ddb9f9f272f4d7cecf.tar.bz2
pfsense-packages-74a9fe399045af40708cd9ddb9f9f272f4d7cecf.zip
Adding ProxyPreserveHost directive option
Diffstat (limited to 'config/apache_mod_security')
-rw-r--r--config/apache_mod_security/apache_mod_security.inc2
-rw-r--r--config/apache_mod_security/apache_mod_security.xml6
2 files changed, 8 insertions, 0 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index 91725f84..a1e51aaa 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -239,6 +239,8 @@ EOF;
$mod_proxy .= " ProxyPassReverse /{$sitename} {$backend_sites}\n";
$mod_proxy .= " ProxyPass / {$backend_sites}\n";
}
+ if($ams['preserveproxyhostname'])
+ $mod_proxy .= " ProxyPreserveHost on\n";
$mod_proxy .= "</VirtualHost>\n";
// End VirtualHost
}
diff --git a/config/apache_mod_security/apache_mod_security.xml b/config/apache_mod_security/apache_mod_security.xml
index f8708d49..efd7645a 100644
--- a/config/apache_mod_security/apache_mod_security.xml
+++ b/config/apache_mod_security/apache_mod_security.xml
@@ -121,6 +121,12 @@
<type>input</type>
</field>
<field>
+ <fielddescr>Preserve Proxy hostname</fielddescr>
+ <fieldname>preserveproxyhostname</fieldname>
+ <description>When enabled, this option will pass the Host: line from the incoming request to the proxied host, instead of the backend IP address.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
<fielddescr>Primary site hostname</fielddescr>
<fieldname>primarysitehostname</fieldname>
<description>