From 758340d9b9242679eddc5abadeb15a4b8b98a866 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 22 Jun 2009 22:48:17 -0400 Subject: Move example to a php comment block and note that it should be preserved. --- config/apache_mod_security/apache_mod_security.inc | 51 ++++++++++++---------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index 6c8faa8b..f37fc301 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -35,31 +35,38 @@ ProxyRequests off Allow from all -#----------------1 backend ip--------------------- -# -# ServerAdmin $serveradmin -# ServerName $primarysitehostname -# ServerAlias $additionalsitehostnames -# ProxyPass / $backendwebserverURL -# ProxyPassReverse / $backendwebserverURL -# -#where serveralias will be a space-separated list of "additional site hostnames" -#i.e. if you have www1.example.com and www2.example.com there, it's "ServerAlias www1.example.com www2.example.com" -#------------------------------------------------- - -#------------mutliple backend ips----------------- -# Add: -# -# BalancerMember $backend1 -# BalancerMember $backend2 -# -# Change: -# ProxyPass / balancer://$sitename/ -# ProxyPassReverse / balancer://$sitename/ -#------------------------------------------------- EOF; + /* ##################################################### + # Format for the Proxy servers: + # Please do not delete these from the source file + # in any "cleanups" that you feel you are performing. + # They are here for sanity checking the code. + #----------------1 backend ip--------------------- + # + # ServerAdmin $serveradmin + # ServerName $primarysitehostname + # ServerAlias $additionalsitehostnames + # ProxyPass / $backendwebserverURL + # ProxyPassReverse / $backendwebserverURL + # + #where serveralias will be a space-separated list of "additional site hostnames" + #i.e. if you have www1.example.com and www2.example.com there, it's "ServerAlias www1.example.com www2.example.com" + #------------------------------------------------- + #------------mutliple backend ips----------------- + # Add: + # + # BalancerMember $backend1 + # BalancerMember $backend2 + # + # Change: + # ProxyPass / balancer://$sitename/ + # ProxyPassReverse / balancer://$sitename/ + #------------------------------------------------- + ##################################################### + */ + // Setup mod_proxy entries if($config['installedpackages']['apachemodsecurity']) { foreach($config['installedpackages']['apachemodsecurity']['config'] as $ams) { -- cgit v1.2.3