JBoss Native SVN: r3251 - trunk/build/unix.
by jbossnative-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2014-02-01 03:44:51 -0500 (Sat, 01 Feb 2014)
New Revision: 3251
Modified:
trunk/build/unix/buildbin.mod_cluster.windows.sh
Log:
Add new syntax. (old one doesn't work correctly with accesscompat).
Modified: trunk/build/unix/buildbin.mod_cluster.windows.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.windows.sh 2014-02-01 07:45:37 UTC (rev 3250)
+++ trunk/build/unix/buildbin.mod_cluster.windows.sh 2014-02-01 08:44:51 UTC (rev 3251)
@@ -118,7 +118,9 @@
1.0.*)
;;
1.1.*|1.2.*|1.3.*)
- cat >> "${win_output_loc}/conf/default/httpd.conf.in" <<EOF
+ case ${httpd_version} in
+ 2.2*)
+ cat >> "${win_output_loc}/conf/default/httpd.conf.in" <<EOF
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
@@ -160,6 +162,48 @@
</VirtualHost>
</IfModule>
EOF
+ ;;
+ 2.4*)
+ cat >> "${win_output_loc}/conf/default/httpd.conf.in" <<EOF
+
+LoadModule proxy_module modules/mod_proxy.so
+LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
+LoadModule proxy_http_module modules/mod_proxy_http.so
+
+LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
+
+LoadModule manager_module modules/mod_manager.so
+LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
+LoadModule advertise_module modules/mod_advertise.so
+
+# MOD_CLUSTER_ADDS
+# Adjust to you hostname and subnet.
+<IfModule manager_module>
+ Listen @@MCMPIP@@:@@MCMPPORT@@
+ ManagerBalancerName mycluster
+ <VirtualHost @@MCMPIP@@:@@MCMPPORT@@>
+ <Location />
+ Require ip @@SUBIP@@
+ </Location>
+
+ KeepAliveTimeout 300
+ MaxKeepAliveRequests 0
+ #ServerAdvertise on http://@@MCMPIP@@:@@MCMPPORT@@
+ 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
cp -p "${win_output_loc}/bin/installconf.bat" "${win_output_loc}/bin/installconf.$$"
sed "s:8080:8000:" "${win_output_loc}/bin/installconf.bat" > "${win_output_loc}/bin/installconf.$$"
mv "${win_output_loc}/bin/installconf.$$" "${win_output_loc}/bin/installconf.bat"