apache + tomcat 연동방법

  • tomcat connector 설치
  • /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


+ Recent posts