From 74a9fe399045af40708cd9ddb9f9f272f4d7cecf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 24 Jun 2009 14:55:06 -0400 Subject: Adding ProxyPreserveHost directive option --- config/apache_mod_security/apache_mod_security.inc | 2 ++ config/apache_mod_security/apache_mod_security.xml | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'config') 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 .= "\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 @@ -120,6 +120,12 @@ 40 input + + Preserve Proxy hostname + preserveproxyhostname + When enabled, this option will pass the Host: line from the incoming request to the proxied host, instead of the backend IP address. + checkbox + Primary site hostname primarysitehostname -- cgit v1.2.3