Author: jfrederic.clere(a)jboss.com
Date: 2011-01-20 12:11:56 -0500 (Thu, 20 Jan 2011)
New Revision: 2726
Modified:
trunk/build/unix/buildbin.mod_cluster.windows.sh
Log:
Add default configuration.
Modified: trunk/build/unix/buildbin.mod_cluster.windows.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.windows.sh 2011-01-19 15:14:58 UTC (rev 2725)
+++ trunk/build/unix/buildbin.mod_cluster.windows.sh 2011-01-20 17:11:56 UTC (rev 2726)
@@ -81,5 +81,43 @@
cp target/*-bin.* ${build_top}/output
)
+# Add default mod_cluster conf in httpd.conf
+case $build_version in
+ 1.0.*)
+ ;;
+ 1.1.*)
+ cat >> "${win_output_loc}/conf/default/httpd.conf.in" <<EOF
+# MOD_CLUSTER_ADDS
+# Adjust to you hostname and subnet.
+<IfModule manager_module>
+ Listen 127.0.0.1:6666
+ ManagerBalancerName mycluster
+ <VirtualHost 127.0.0.1:6666>
+ <Directory />
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0
+ </Directory>
+
+ KeepAliveTimeout 300
+ MaxKeepAliveRequests 0
+ #ServerAdvertise on http://@IP@:6666
+ AdvertiseFrequency 5
+ #AdvertiseSecurityKey secret
+ #AdvertiseGroup @ADVIP@:23364
+
+ <Location /mod_cluster_manager>
+ SetHandler mod_cluster-manager
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0
+ </Location>
+
+ </VirtualHost>
+</IfModule>
+EOF
+ ;;
+esac
+
echo "Done"
exit 0
Show replies by date