본문 바로가기

Linux Server 구축/1-2. Web Server

Tomcat 6.0 & Apache Server 연동 중 Servlets 연동 문제


Tomcat 6.0 을 설치 후 브라우저에서 확인 할 때 servlets과의 연동이 안되는 경우 해결 방법

 
[root@server3 extra]# vi /usr/local/apache/conf/httpd.conf
#tomcat setting
include conf/extra/tomcat.conf

[root@server3 extra]# pwd
/usr/local/apache/conf/extra
[root@server3 extra]# vi tomcat.conf
[root@server3 extra]# cat tomcat.conf
#mod_jk setup
<IfModule mod_jk.c>
JkWorkersFile "/usr/local/apache/conf/workers.properties"
JkLogFile "/usr/local/apache/logs/mod_jk.log"
JkLogLevel emerg
JkMount /*.jsp server3-worker
JkMount /examples/jsp/*.jsp server3-worker    - 녹색 부분을 추가해 준다.
JkMount /examples/servlets/* server3-worker
</IfModule>

Alias /examples "/usr/local/apache-tomcat-6.0.18/webapps/examples"

<Directory "/usr/local/apache-tomcat-6.0.18/webapps/examples">
Options indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
[root@server3 extra]#