In Apache you fix this problem by altering the: UseCanonicalName in
httpd.conf, I forget whether it should be "on" or "off". If you're using
an Apache front-end to Tomcat then you can stop it there.

On Tue, 2005-02-08 at 13:54 +1100, Oliver Hutchison wrote:
> In Tomcat 5.5.7 is there a way to disable the automatic redirect that
> happens when a request matches a directory except for the trailing
> slash? e.g. On my server the request "/boards" get redirected to
> "/boards/" as there is a "boards" directory on the server.
>  
> The strange thing is the redirect seem to happen before any filters or
> servlet are allowed to process the request. This is really annoying as I
> have a filter that is expecting to see the "/boards" request not the
> redirected "/boards/" request. This feels like a bug to me. Shouldn't
> the redirect be initiated by the default servlet after any user
> servlet/filters have processed the request?
>  
> There is a bug report for this but the comments are not helpful and it
> seems to be related to the 5.0 code base.
> http://issues.apache.org/bugzilla/show_bug.cgi?id=32424
>  
> Oliver
>  
> 
> 
> 
> 


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

Reply via email to