Apache JkMount to Tomcat root, not a context.

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-30-2003
Darren
 
Posts: n/a
Default Apache JkMount to Tomcat root, not a context.

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
  #2 (permalink)  
Old 07-30-2003
Darren
 
Posts: n/a
Default Re: Apache JkMount to Tomcat root, not a context.

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

  #3 (permalink)  
Old 07-31-2003
Darren
 
Posts: n/a
Default Re: Apache JkMount to Tomcat root, not a context.

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0