Apache

    [Apache+ Tomcat] TCP를 통한 톰캣 세션클러스터링(클라우드 환경)

    Apache 작업1) workers_jk.properties 수정worker.list=load_balancerworker.load_balancer.type=lbworker.load_balancer.balance_workers=was_01,was_02worker.load_balancer.sticky_session=true#was1worker.was_01.type=ajp13worker.was_01.host=IPworker.was_01.port=8090worker.was_01.lbfactor=5#was2worker.was_02.type=ajp13worker.was_02.host=IPworker.was_02.port=8090worker.was_02.lbfactor=1 2) httpd-vhosts.conf 수정 ..

    [Apache+ Tomcat] mod_jk 모듈을 통한 WEB/WAS 연동

    Apache 작업1) httpd.conf 수정아래 두줄 추가LoadModule jk_module modules/mod_jk.soInclude conf/mod_jk.conf 2) mod_jk.conf 생성 JkWorkersFile /data/apache2.4/conf/workers_jk.properties JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkLogFile logs/mod_jk_log JkLogLevel info 3) workers_jk.properties 생성worker.list=tomcatworker.tomcat.port=8009worker.tomcat.host=10.0.20.81worker.tomcat.type=ajp13worker.to..

    [Apache + Tomcat] Proxy 모듈 통한 WEB/WAS 연동

    Apache 작업1) httpd.conf 수정a. mod_proxy.so, mod_proxy_http.so, mod_rewrite.so 주석제거b. Include conf/extra/httpd-vhosts.conf  주석제거2) httpd-vhost.conf 수정 ServerAdmin root@localhost ServerName test.com DefaultType text/html CustomLog "|/data/apache2.4/bin/rotatelogs /data/apache2.4/logs/access_%Y_%m_%d.log 86400 +540" common env=!exceptlist Require all denied # 서비스에 필요시 주석..