I am using both:

 DirectoryIndex /jsp/index.jsp index.html

and

DirectoryIndex /jsp/index.jsp

and both work fine.  There is no longer an index.html file either so that
one only goes to index.jsp.

I am using Apache 1.3.24.

An alternative I would suggest is to remove the DirectoryIndex setting from
Apache and let Tomcat handle this by putting

 <welcome-file-list>
  <welcome-file>jsp/index.jsp</welcome-file>
 </welcome-file-list>

into the web.xml of the application in question.

In fact I now realise that I have both of the above implemented for the app.
I'm looking at at the moment.

Hope that helps,

Andoni.

----- Original Message -----
From: "John Turner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 2:16 PM
Subject: Re: Tomcat with Virtual hosting


>
> That's a known problem with the Apache connectors.  "DirectoryIndex
> index.jsp" has no effect.  I think some people have had success mucking
> around with mod_rewrite and/or the module load order, but I don't recall
> anyone ever posting a definitive solution to the list.
>
> The most basic workaround is to use a META refresh in index.html to
> redirect to index.jsp.  If anyone has a more elegant solution, I'd love
> to see it.
>
> John
>
> Andrew Geery wrote:
>
> > Why do you need to forward the request from index.html to index.jsp?
> > Can't you simply set index.jsp to be a directory index page (e.g.,
> > DirectoryIndex index.html index.jsp)?
> >
> > Abhinav Gautam wrote:
> >
> >> Hi,
> >>
> >> I am having serious problems with Tomcat. It just happened that without
> >> any reason the web server stopped responding to JSP requests. I have
> >> restarted Tomcat and Apache several times, but when the index.html
> >> forwards the request to index.jsp, I get an error saying "page not
> >> found."
> >> I have checked the server.xml and the httpd.conf files and everything
> >> seems to be fine. Also when I do "netstat -ta" the server seems to be
> >> listening on port 8007.
> >>
> >> I have virtual hosting set up in tomcat. There's one primary domain
with
> >> an IP address and there are 2 other domains with a different IP
> >> (different
> >> from primary, but one IP for both of the other domains) set up on the
> >> same
> >> web server.
> >>
> >> Any help will be greatly appreciated.
> >>
> >> Thanks.
> >> Abhinav
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to