Keep in mind the mod_jk.conf-auto file is there for your convenience only.  ajp13 and ajp12 are only used to communicate with Apache Web Server through the mod_jk connector.  Whatever you include will be used.

You seem to be duplicating efforts.  You are inlcuding the mod_jk.conf-auto and then rewriting the same contents as the mod_jk.conf-auto on the following lines.  The best way to do what you need is to copy everything from the mod_jk.conf-auto to another file; mod_jk.conf or mod_jk.conf-static or whatever.

Now edit the content to use ajp13 instead of ajp12 like you did below. 

Now, get rid of everything that you've written below from your httpd.conf except the include line.  However, change that line to point to the new static file which you've edited to use ajp13.  BTW, this is also a quite necessary thing to do when you need to use servlet mappings that aren't the default "/contextname/*.jsp" and "/contextname/servlet/*".  Now you can leave your httpd.conf alone and just edit the static mod_jk.conf file whenever you need to make changes to Tomcat webapps.

Jake

At 10:56 AM 12/28/2000 -0800, you wrote:
I have gotten Apache 1.3.14 and Tomcat 3.2.1 to work.  I'm not sure if ajpv13 protocol is being used; how can I be sure ?
 
I have added the following lines at the end of my httpd.conf.
 

# Amit Added

include D:/Tomcat/conf/mod_jk.conf-auto

# Use ajpv13 protocol thru the ajp13 adapter

# Root context mounts for Tomcat

JkMount /*.jsp ajp13

JkMount /servlet/* ajp13

# The following line mounts all JSP files and the /servlet/ uri to tomcat

JkMount /examples/servlet/* ajp13

JkMount /examples/*.jsp ajp13

# The following line mounts all JSP files and the /servlet/ uri to tomcat

JkMount /admin/servlet/* ajp13

JkMount /admin/*.jsp ajp13

# The following line mounts all JSP files and the /servlet/ uri to tomcat

JkMount /amitTest/servlet/* ajp13

JkMount /amitTest/*.jsp ajp13

# The following line mounts all JSP files and the /servlet/ uri to tomcat

JkMount /test/servlet/* ajp13

JkMount /test/*.jsp ajp13

 

Do the above settings in httpd.conf override the settings in the mod_jk.conf-auto file ?

Thanks
amit
 

Reply via email to