aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-22 19:43:07 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-22 19:43:07 -0400
commit2ceaffd54d905eb2d5ee1e7f23e4edc756ed5e7c (patch)
tree313bd33436753fabc85091abb0a0eff6fe99849c /config
parentd8ca064326698b172fac5809ea2548e1ae415064 (diff)
downloadpfsense-packages-2ceaffd54d905eb2d5ee1e7f23e4edc756ed5e7c.tar.gz
pfsense-packages-2ceaffd54d905eb2d5ee1e7f23e4edc756ed5e7c.tar.bz2
pfsense-packages-2ceaffd54d905eb2d5ee1e7f23e4edc756ed5e7c.zip
Out of box its forwarding now but much is to be done.
Diffstat (limited to 'config')
-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";
}
}
}