aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <jakub.moc@gmail.com>2015-07-12 20:32:59 +0200
committerdoktornotor <jakub.moc@gmail.com>2015-07-12 20:32:59 +0200
commit6258a340683af7a683bc1d7245bcfad996b83993 (patch)
tree26e8ca5326106c9416b4381ce14e87c1e166349e
parent2c68b4b20bc0709ec485f0292648b50aff3ad098 (diff)
downloadpfsense-packages-6258a340683af7a683bc1d7245bcfad996b83993.tar.gz
pfsense-packages-6258a340683af7a683bc1d7245bcfad996b83993.tar.bz2
pfsense-packages-6258a340683af7a683bc1d7245bcfad996b83993.zip
apache_mod_security-dev - fix Bug #3360, Bug #4421
Leaving the Backend Path blank does not add / to backendpath in configuration, contrary to what's suggested in the GUI, resulting in HTTP 503 Error.
-rw-r--r--config/apache_mod_security-dev/apache_mod_security.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/apache_mod_security-dev/apache_mod_security.inc b/config/apache_mod_security-dev/apache_mod_security.inc
index 72c1f9b4..ed5596d6 100644
--- a/config/apache_mod_security-dev/apache_mod_security.inc
+++ b/config/apache_mod_security-dev/apache_mod_security.inc
@@ -603,8 +603,8 @@ EOF;
}
$vh_config.=" <Location ".($backend['sitepath'] ? $backend['sitepath'] : "/").">\n";
- $vh_config.=" ProxyPass balancer://{$backend['balancer']}{$backend['backendpath']}\n";
- $vh_config.=" ProxyPassReverse balancer://{$backend['balancer']}{$backend['backendpath']}\n";
+ $vh_config.=" ProxyPass balancer://{$backend['balancer']}".($backend['backendpath'] ? $backend['backendpath'] : "/")."\n";
+ $vh_config.=" ProxyPassReverse balancer://{$backend['balancer']}".($backend['backendpath'] ? $backend['backendpath'] : "/")."\n";
if ($backend['compress']== "no")
$vh_config.=" SetInputFilter INFLATE\n SetOutputFilter INFLATE\n";
if ($backend['modsecgroup']!="" && $backend['modsecgroup']!="none" && $mods_settings['enablemodsecurity']=="on"){