Author: jfrederic.clere(a)jboss.com
Date: 2014-01-27 04:44:39 -0500 (Mon, 27 Jan 2014)
New Revision: 3200
Modified:
trunk/build/unix/buildbin.mod_cluster.sh
Log:
Ajust the new mod_authz_host directives.
Modified: trunk/build/unix/buildbin.mod_cluster.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.sh 2014-01-27 06:45:56 UTC (rev 3199)
+++ trunk/build/unix/buildbin.mod_cluster.sh 2014-01-27 09:44:39 UTC (rev 3200)
@@ -248,7 +248,9 @@
EOF
fi
- cat >> "${RPM_BUILD_ROOT}/opt/jboss/httpd/httpd/conf/httpd.conf"
<<EOF
+ case ${httpd_version} in
+ 2.2*)
+ cat >> "${RPM_BUILD_ROOT}/opt/jboss/httpd/httpd/conf/httpd.conf"
<<EOF
# MOD_CLUSTER_ADDS
# Adjust to you hostname and subnet.
<IfModule manager_module>
@@ -279,6 +281,37 @@
</VirtualHost>
</IfModule>
EOF
+ ;;
+ 2.4*)
+ cat >> "${RPM_BUILD_ROOT}/opt/jboss/httpd/httpd/conf/httpd.conf"
<<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>
+ <Location />
+ Require ip 127.0.0
+ </Location>
+
+ KeepAliveTimeout 300
+ MaxKeepAliveRequests 0
+ #ServerAdvertise on http://@IP@:6666
+ AdvertiseFrequency 5
+ #AdvertiseSecurityKey secret
+ #AdvertiseGroup @ADVIP@:23364
+ EnableMCPMReceive
+
+ <Location /mod_cluster_manager>
+ SetHandler mod_cluster-manager
+ Require ip 127.0.0
+ </Location>
+
+ </VirtualHost>
+</IfModule>
+EOF
+ ;;
+ esac
echo "Done"
;;
esac
Show replies by date