aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-21 20:33:15 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-21 20:33:15 -0400
commitdcb40a61ff15f5afe1a60674a9d8e88675e8b801 (patch)
tree08c9de44241bb9b021be7c3bde03db735917f21f /config
parentcb7a5d289dfc5346b00aad95e705b98bd537b84d (diff)
downloadpfsense-packages-dcb40a61ff15f5afe1a60674a9d8e88675e8b801.tar.gz
pfsense-packages-dcb40a61ff15f5afe1a60674a9d8e88675e8b801.tar.bz2
pfsense-packages-dcb40a61ff15f5afe1a60674a9d8e88675e8b801.zip
Cleanup config. Unfortuantely it is not passing traffic yet.
Diffstat (limited to 'config')
-rw-r--r--config/apache_mod_security/apache_mod_security.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index aec767a8..7701d335 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -29,8 +29,11 @@ function generate_apache_configuration() {
if($config['installedpackages']['apachemodsecurity']) {
foreach($config['installedpackages']['apachemodsecurity']['config'] as $ams) {
$sitename = str_replace(" ", "", $ams['sitename']);
- $mod_proxy .= "ProxyPass /{$sitename}/ {$sitename} \n";
- $mod_proxy .= "ProxyHTMLURLMap {$ams['siteurl']} /{$sitename} \n";
+ $mod_proxy .= "ProxyPass /{$sitename}/ ";
+ foreach($ams['row'] as $row)
+ $mod_proxy .= " {$row['webserveripaddr']}";
+ $mod_proxy .= "\n";
+
$mod_proxy .= "<Location /{$sitename}/>\n";
$mod_proxy .= " ProxyRemote {$ams['siteurl']}";
foreach($ams['row'] as $row)
@@ -38,6 +41,7 @@ function generate_apache_configuration() {
$mod_proxy .= "\n";
$mod_proxy .= " ProxyPassReverse /\n";
$mod_proxy .= " SetOutputFilter proxy-html\n";
+// $mod_proxy .= "ProxyHTMLURLMap {$ams['siteurl']} /{$sitename} \n";
// $mod_proxy .= " ProxyHTMLURLMap / /{$sitename}/\n";
// $mod_proxy .= " ProxyHTMLURLMap /{$ams['sitename']} /{$sitename}\n";
$mod_proxy .= " RequestHeader unset Accept-Encoding\n";