aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache_mod_security
diff options
context:
space:
mode:
Diffstat (limited to 'config/apache_mod_security')
-rw-r--r--config/apache_mod_security/apache_mod_security.inc4
-rw-r--r--config/apache_mod_security/apache_mod_security_view_logs.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index 7a2193c0..15550dd3 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -247,8 +247,6 @@ EOF;
$local_ip_port = "{$ams['ipaddress']}:{$ams['port']}";
else
$local_ip_port = $global_listen;
- // Begin VirtualHost
- $mod_proxy .= "\n<VirtualHost {$local_ip_port}>\n";
// Is this item a load balancer
if(count($ams['row'])>1) {
$balancer = true;
@@ -259,6 +257,8 @@ EOF;
$backend_sites = " balancer://{$sitename}\n";
$sitename = ""; // we are not using sitename in this case
}
+ // Begin VirtualHost
+ $mod_proxy .= "\n<VirtualHost {$local_ip_port}>\n";
if($additionalsitehostnames)
$mod_proxy .= " ServerAlias $additionalsitehostnames\n";
if($serveradmin)
diff --git a/config/apache_mod_security/apache_mod_security_view_logs.php b/config/apache_mod_security/apache_mod_security_view_logs.php
index 94561504..8289ac1e 100644
--- a/config/apache_mod_security/apache_mod_security_view_logs.php
+++ b/config/apache_mod_security/apache_mod_security_view_logs.php
@@ -119,7 +119,7 @@ pre {
</td>
</div>
<?php
- if($_REQUEST['logtype'] == "error") {
+ if($_REQUEST['logtype'] = "error") {
echo "<br/>View <a href='apache_mod_security_view_logs.php?logtype=error'>error</a> logs";
} else {
echo "<br/>View <a href='apache_mod_security_view_logs.php'>access</a> logs";