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>
로그인하면 댓글을 남길 수 있습니다.
  • mod_cluster_연동_예제.txt
  • 마지막으로 수정됨: 2017/05/22 09:28
  • 저자 koov