From 2ceaffd54d905eb2d5ee1e7f23e4edc756ed5e7c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 22 Jun 2009 19:43:07 -0400 Subject: Out of box its forwarding now but much is to be done. --- config/apache_mod_security/apache_mod_security.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'config/apache_mod_security') diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index baffd039..7ee36c81 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -27,6 +27,9 @@ function generate_apache_configuration() { $mod_proxy = "ProxyRequests on\n"; $mod_proxy = << Order deny,allow Allow from all @@ -36,15 +39,15 @@ EOF; // Setup mod_proxy entries if($config['installedpackages']['apachemodsecurity']) { - foreach($config['installedpackages']['apachemodsecurity'][0]['config'] as $ams) { + foreach($config['installedpackages']['apachemodsecurity']['config'] as $ams) { $backend_sites = ""; foreach($ams['row'] as $row) $backend_sites .= "{$row['webserveripaddr']} "; $sitename = str_replace(" ", "", $ams['sitename']); $mod_proxy .= "\n"; if($backend_sites) { - $mod_proxy .= "ProxyPass /{$sitename} {$backend_sites}\n"; - $mod_proxy .= "ProxyPassReverse / {$backend_sites}\n"; + $mod_proxy .= "ProxyPassReverse /{$sitename} {$backend_sites}\n"; + $mod_proxy .= "ProxyPass / {$backend_sites}\n"; } } } -- cgit v1.2.3