This is a discussion on Apache JkMount to Tomcat root, not a context. within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Does anyone out there know how to configure mod_jk to connect Apache to the root of Tomcat? I want ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Does anyone out there know how to configure mod_jk to connect Apache to the root of Tomcat? I want to be able to have a url like this: www.example.com/myServlets/aServlet and have Apache pass the requests to the root of Tomcat and not to the /myServlets context of Tomcat. This is so that HttpSession cookies are not created with a path statement that looks like this: path=/myServlets I have my context set like this: <Context path="" docBase="" debug="0" reloadable="true"/> which works fine when I use Tomcat's http connector and a url like this: www.example.com:8080/aServlet But I can't do the same via Apache and the mod_jk connector. Many thanks in advance for any help, Darren |
|
|||
|
I should add that I'm using Apache 1.3.28 and Tomcat 4.0.6.
googlegroups@lindenindian.com (Darren) wrote in message news:<74a5a899.0307291958.27fc9917@posting.google. com>... > Hi, > > Does anyone out there know how to configure mod_jk to connect Apache > to the root of Tomcat? > > I want to be able to have a url like this: > www.example.com/myServlets/aServlet > and have Apache pass the requests to the root of Tomcat and not to the > /myServlets context of Tomcat. > > This is so that HttpSession cookies are not created with a path > statement that looks like this: > path=/myServlets > > > I have my context set like this: > <Context path="" docBase="" debug="0" reloadable="true"/> > which works fine when I use Tomcat's http connector and a url like > this: > www.example.com:8080/aServlet > But I can't do the same via Apache and the mod_jk connector. > > Many thanks in advance for any help, > > Darren |
|
|||
|
In case anyone is interested I managed to solve this by mounting jk like this:
JkMount /aServlet aWorker Now I can access my servlet like this: www.example.com/aServlet and the path of the HttpSession cookie is this: path=/ Darren googlegroups@lindenindian.com (Darren) wrote in message news:<74a5a899.0307300634.685d12af@posting.google. com>... > I should add that I'm using Apache 1.3.28 and Tomcat 4.0.6. > > > googlegroups@lindenindian.com (Darren) wrote in message news:<74a5a899.0307291958.27fc9917@posting.google. com>... > > Hi, > > > > Does anyone out there know how to configure mod_jk to connect Apache > > to the root of Tomcat? > > > > I want to be able to have a url like this: > > www.example.com/myServlets/aServlet > > and have Apache pass the requests to the root of Tomcat and not to the > > /myServlets context of Tomcat. > > > > This is so that HttpSession cookies are not created with a path > > statement that looks like this: > > path=/myServlets > > > > > > I have my context set like this: > > <Context path="" docBase="" debug="0" reloadable="true"/> > > which works fine when I use Tomcat's http connector and a url like > > this: > > www.example.com:8080/aServlet > > But I can't do the same via Apache and the mod_jk connector. > > > > Many thanks in advance for any help, > > > > Darren |