Hello,

I'm using the following
Apache2.2
mod_jk 1.2.32
Tomcat 7.0.21

I am trying to understand how to configure Apache to allow access to Tomcat via mod_jk. I have already made some progress, but have got stuck on one point.

Currently, I can access Apache at http://localhost ( works )
I can also access tomcats default wepapp and the manager and host-manager via

http://localhost:8080/
http://localhost:8080/manager
http://localhost:8080/host-manager


What I want to do next it to connect Apache to Tomcat via mod_jk such that the following URLs work

http://localhost/tomcat7/ ( default tomcat webapp)
http://localhost/tomcat7/manager
http://localhost/tomcat7/host-manager


I have updated the workers.properties with:

   worker.list=tomcat7
   worker.tomcat7.type=ajp13
   worker.tomcat7.host=localhost
   worker.tomcat7.port=8809

I have added the the following in my http-jk.conf that I include in http.conf:

   JkMount  /tomcat7/* tomcat7

When I try to access http://localhost/tomcat7, tomcat is given the URI /tomcat7/

   127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] "GET /tomcat7/ HTTP/1.1"
   404 979

So from the above log, I know that apache is forwarding the requests to tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part of the request and since there is no tomcat7 web app, it doesn't match the request.

I would like http://localhost/tomcat7/ to map to the root of my Tomcat, and to be able to access http://localhost/tomcat7/manager, http://localhost/tomcat7/host-manager.

What do I do next?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to