mod_cluster 연동 예제

LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so

Listen 192.168.0.11:6666

ProxyPassMatch ^(/resources/.*)$ !
ProxyPassMatch ^(/survey/.*)$ !
ProxyPassMatch ^(/publishing/.*)$ !
ProxyPassMatch ^(/robots.txt)$ !
ProxyPassMatch ^(/sitemap.xml)$ !

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]

<VirtualHost 192.168.0.11:6666>
<Location />
Order deny,allow
Deny from all
Allow from 192.168.0. 192.168.100.
</Location>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName mycluster
EnableMCPMReceive
ServerAdvertise Off
#LBstatusRecalTime 1
#AdvertiseFrequency 1

LogLevel info
ErrorLog logs/modcluster.log

</VirtualHost>