aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/apache_mod_security/apache_mod_security.inc9
1 files changed, 6 insertions, 3 deletions
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 = <<<EOF
+
+ProxyRequests off
+
<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";
}
}
}