apache + tomcat 연동방법
- tomcat connector 설치
- yum install gcc* httpd-devel autoconf libtool
- wget http://mirror.apache-kr.org/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz
- tar zxvf tomcat-connectors-1.2.41-src.tar.gz
- ./buildconf.sh
- ./configure --with-apxs=/usr/bin/apxs
- make
- make install
- /etc/httpd/moduels/mod_jk.so 파일 생성 확인
- vi /etc/httpd/conf/httpd.conf
- LoadModule jk_module modules/mod_jk.so
- Include conf/mod_jk.conf
vi /etc/httpd/conf/mod_jk.conf
<IfModule mod_jk.c> JkWorkersFile "/etc/httpd/conf/workers.properties" JkLogFile "/etc/httpd/logs/mod_jk.log" JkLogLevel info JkAutoAlias "/home/paralles/Dev/tomcat/webapps" JkMount /*.jsp worker1 JkUnMount /*.html worker1 JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" </IfModule>
vi /etc/httpd/conf/workers.properties
worker.list = worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009