tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kennedy" <jgkenn...@mindspring.com>
Subject RE: Why does tomcat redirect to welcome files
Date Tue, 06 Sep 2005 13:56:50 GMT
Thanks Mark, found some good info.  Another question:

Is is possible to force a forwards for welcome pages with Tomcat.  Is there
an engine setting for that? Or would I be forced to change the Tomcat
source. I notice with other web servers (i.e. IIS) I can specify a default
page which returns HTTP 200 code instead of redirect codes.

Thanks


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Sunday, September 04, 2005 3:19 PM
To: Tomcat Users List
Subject: Re: Why does tomcat redirect to welcome files

Jim Kennedy wrote:
> I have setup Tomcat to use index.html as the only welcome file.  I 
> noticed that the engine redirects to index.html.  I'm wondering why 
> that is the case.  I would prefer Status: HTTP/1.1 200 OK
> Not:  Status: HTTP/1.1 302 Moved Temporarily

<spec quote section="SRV.9.10">
The container may send the request to the welcome resource with a forward, a
redirect, or a container specific mechanism that is indistinguishable from a
direct request.
</spec-quote>

There is also the issue of security constraints. See
http://marc.theaimsgroup.com/?l=tomcat-dev&m=110980317127394&w=2 for a
discussion.



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




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


Mime
View raw message