I spend a good week trying to solve this and other problems recently.

Just add a virtual server (in a "host" tag) to your server.xml file the same
as the VirtualHost in apache.

Ditch the /appname unless it is not the only thing on that domain name.

If you want it just use an alias /appname /bin/tomcat/webapps/appname

Andoni.

----- Original Message -----
From: "Chad Cannell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 2:08 PM
Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp


Yea, I'm more comfortable at this point just adding the meta redirect.
Thanks for all the suggestions though!

C

-----Original Message-----
From: Turner, John [mailto:JTurner@;AAS.com]
Sent: Thursday, November 14, 2002 8:22 AM
To: 'Tomcat Users List'
Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp



All I know is the behavior I see on my servers.

I have DirectoryIndex set to index.jsp.  My Apache has mod_dir.

Calling a directory mapped to Tomcat (such as /myApp) with
http://localhost/myApp doesn't return anything, definitely not
index.jsp.
This is on 4.0.4 and 4.1.12.

If your DirectoryIndex does work with index.jsp, I'd be interested in
seeing
your configuration.  About the only way I can think of to approach this
problem is to play with the load order for the Apache modules...perhaps
loading mod_jk at a different time or loading mod_dir after mod_jk might
change the behavior.  For me, at this time, it's just easier to stick an
index.html file in there with a refresh of 0.

John


> -----Original Message-----
> From: Veniamin Fichin [mailto:3ca28f66@;mail.ru]
> Sent: Thursday, November 14, 2002 3:31 AM
> To: Tomcat Users List
> Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp
>
>
> Turner, John wrote:
>
> > That's pretty much the solution...this has come up before.
> >
> > By the time JK gets involved, Apache is just about done
> with the URL...it
> > doesn't perform any rewriting, etc. it's just looking for a match.
>
> But in my understanding first of all when Apache is requested
> to process
> some directory (for example, http://www.somehost.com/test/),
> it tries to
> invoke any file listed in its DirectoryIndex directive, then he finds
> index.jsp and invokes it, causing to jk to wake up. So Apache
> is first
> in action, and jk is following it. Am I right?
>
> > The elegant solution is probably using mod_rewrite to
> rewrite requests
> > ending in "/" to "/index.jsp".
> >
> > John
> >
> >>-----Original Message-----
> >>From: Chad Cannell [mailto:ccannell@;elogex.com]
> >>Sent: Wednesday, November 13, 2002 3:45 PM
> >>To: Tomcat Users List
> >>Subject: Apache Index page jsp and sessionid with JKMount *.jsp
> >>
> >>
> >>I am trying to set Apache's index file to index.jsp. It is
> >>not working.
> --= [ cut ] =--
> >>
> >>Using Apache 2.0, ajp13. Tomcat 3.2x
> >>
> >>Chad
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to