1. httpd.conf 수정(모듈 로딩)
LoadModule proxy_cluster_module /jboss/ews/httpd/modules/mod_proxy_cluster.so
LoadModule slotmem_module /jboss/ews/httpd/modules/mod_slotmem.so
LoadModule manager_module /jboss/ews/httpd/modules/mod_manager.so
LoadModule advertise_module /jboss/ews/httpd/modules/mod_advertise.so
2. httpd.conf 수정(JBoss 연동)
NameVirtualHost 192.168.0.114:80
MemManagerFile /jboss/ews/httpd/logs/mod_cluster
NameVirtualHost 192.168.123.80:80
MemManagerFile /jboss/modcluster_test/ews2.1/httpd/cache/mod_cluster
<IfModule manager_module>
Listen 9876
<Directory />
Order deny,allow
Deny from all
Allow from 192.168.123.
</Directory>
<VirtualHost *:9876>
<Location /MCM>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from 192.168.123.
</Location>
</VirtualHost>
<VirtualHost 192.168.123.80:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /jboss/modcluster_test/ews2.1/httpd/www
ServerName www.jboss_test.com
ErrorLog logs/jboss_test.com_error.log
CustomLog logs/jboss_test.com_access.log common
<Directory "/jboss/modcluster_test/ews2.1/httpd/www">
Order deny,allow
Allow from all
</Directory>
EnableMCPMReceive on
ManagerBalancerName modClusterTest
ServerAdvertise On
AdvertiseGroup 224.0.1.105:23364
</VirtualHost>
</IfModule>
NameVirtualHost 192.168.238.129:6666
<IfModule manager_module>
Listen 192.168.238.129:6666
<VirtualHost 192.168.238.129:6666>
<Location />
Order deny,allow
Allow from all
</Location>
KeepAliveTimeout 60
ServerAdvertise On
EnableMCPMReceive On
<Location /mod_cluster_manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from all
</Location>
</VirtualHost>
</IfModule>
NameVirtualHost 192.168.238.129:80
<VirtualHost 192.168.238.129:80>
ProxyPass /* balancer://test/* stickysession=JSESSIONID|jsessionid nofailover=On
ProxyPassMatch ^/.*\.(jsp|do|mvc)$ balancer://test/
DocumentRoot /jennifer/web
ServerName jboss_test.com
ErrorLog logs/jboss_test.com_error.log
CustomLog logs/jboss_test.com_access.log common
<Directory "/jennifer/web">
Order deny,allow
Allow from all
</Directory>
#EnableMCPMReceive
#ManagerBalancerName test
</VirtualHost>
http://192.168.0.114:7777/mod_cluster_manager
모니터링 가능
3. module 업로드
mod_proxy_cluster.so, mod_slotmem.so, mod_manager.so, mod_advertise.so
4. standalone-ha.xml
<subsystem xmlns="urn:jboss:domain:modcluster:1.1">
<mod-cluster-config advertise-socket="modcluster" connector="ajp" balancer="myWEBTOP">
mod_cluster는 기본적으로 ROOT(/)를 인식할 수 없다.
<subsystem xmlns="urn:jboss:domain:modcluster:1.1">
<mod-cluster-config advertise-socket="modcluster" proxy-list="127.0.0.1:7777" balancer="scm" excluded-contexts="invoker,jbossws,juddi,console" connector="ajp">
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
mod_advertise: directive in more than one VirtualHost: not supported
'일 > WEB' 카테고리의 다른 글
JKS to wallet (0) | 2019.12.01 |
---|---|
ews(CentOS(WAS1))설치 (0) | 2019.12.01 |
jbcs-httpd24-2.4.23 설치 (0) | 2019.12.01 |
아파치 로그 로테이션 (0) | 2019.12.01 |
리다이렉트( redirect) (0) | 2019.11.29 |