I have complied mod_jk-1.2.25
I configured mod_jk-1.2.25 something like this:
Code:
###JAVA JSP TOMCAT 6 CONFIG USING mod_jk
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat_6/conf/workers.properties
JkLogFile /httpd_logs/mod_jk.log
JkLogLevel info
#JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
Now, i can access mysite/index.jsp
from the tomcat webapp directory.
If i put a file in /home/httpd/html/
say 1.jsp
then tomcat gives me a 404 error.
I want apache and tomcat serving jsp and do files from the same directory /home/httpd/html
such that to jsp and do file requests, apache will pass it to tomcat and tomcat will parse it then tomcat will return the result to apache and apache will show it on the browser or some similar setup.
I don't want tomcat serving from its webapps directory.
Also, how do i create my own worker; for example worker1 ?
Please list all properties present for workers.properties
Is there an alternative to workers.properties ?