Apache + Tomcat5.5 이상한 에러..
글쓴이: aNsITAte / 작성시간: 토, 2005/06/25 - 2:31오후
mod_jk.so 를 이용해서 붙였는데요..
HTTP Status 404 - /test.jsp type Status report message /test.jsp description The requested resource (/test.jsp) is not available. Apache Tomcat/5.5.9
이런 에러를 내면서 해석을 못하네요.
8080 포트로 접속을 하면 정상작동을 하는데...
설정상의 문제로 보이는데..
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so JkWorkersFile /usr/local/share/tomcat/conf/workers.properties JkOptions +ForwardDirectories JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " #send all requests ending in .jsp to worker1 JkMount /*.jsp ajp13 # send all requests ending /servlet to worker1 JkMount /*/servlet/ ajp13 # send all requests jsp requests to files located in /otherworker will go worker2 JkMount /otherworker/*.jsp ajp13 # enter the full path to the tomcat webapps directory JkAutoAlias /usr/local/share/tomcat/webapps # Mount 'servlets-examples' directory. It's physical location # is assumed to be in the /opt/tomtact/webapps/servlets-examples # ajp13w is a worker defined in the workers.properties JkMount /servlets-examples/* ajp13 # Unmount desired static content from servlets-examples webapp. # This content will be served by the httpd directly. JkUnMount /servlets-examples/*.gif ajp13 JkUnMount /servlets-examples/*.jpg ajp13
제가 설정한 jk 모듈 부분입니다. workers.property 는 기본설정으로 그대로 적용했구요.
Forums:
response code가 404네요..즉 파일을 찾을수 없다는
response code가 404네요..
즉 파일을 찾을수 없다는 메세지 입니다.
아파치에서 톰캣으로 넘어가지 않는군요..
workers.property파일을 안올려주셨네요..
mod_jk.log의 파일을 확인하시고..
거기에서 ajp13으로 받아서 정확하게 톰캣으로 던지는지 확인하셔야 할거 같습니다.
httpd.conf에 있는 jk의 설정을 잘못된게 없는거 같네요.
아니면 톰캣의 root context의 경로와 아파치의 RootDocument의 경로가 다르게 설정되어 있다면..... test.jsp의 파일 위치를 톰캣의 root context에 두셔야 됩니다.
예전에 다른직원이 apache의 Root에 두고 안된다고 하던생각이 나는군요... ^^
댓글 달기