diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 2 | ||||
-rw-r--r-- | config/apache_mod_security/apache_mod_security.xml | 6 |
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> |