Hello All,
I am working on Tomcat 3.2.1 + mod_jk + apache 1.3.14
on RH 6.2. I've followed the mod_jk howto and
everything was working OK until when I a trying to
extend servlets support for virtual hosts.
added the following into server.xml
<Connector
className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
<Parameter name="port" value="8009"/>
</Connector>
<Host name="test2.com">
<Context path=""
docBase="/home/test2/public_html" debug="0"/>
</Host>
added in httpd.conf
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /opt/tomcat/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
Include /opt/tomcat/conf/mod_jk.conf-auto
<VirtualHost 192.168.1.69>
User test2
Group test2
DocumentRoot /home/test2/public_html
ServerName test2.com
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
</VirtualHost>
I've created a folder servlet under
/home/test2/public_html and put my servlets over there
but I get a 404 not found when I try to access
test2.com/servlet/HelloWorldServlet
I tried changing ajp12 to ajp13 but no luck.
JSP is working fine. test2.com/hello.jsp
What more needs to be done.
I would appreciate any help.
Thanks in advance.
Regards
Shailaja
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/