Re: Disable directory redirect?

2005-02-07 Thread Garthfield Carter
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]



RE: Disable directory redirect?

2005-02-07 Thread Oliver Hutchison
Thanks but I'm not using Apache as a front-end and the problem is with
some custom processing that Tomcat is doing before any of the standard
processing so I'm not sure using Apache would help in any case.

Ollie

 -Original Message-
 From: Garthfield Carter [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, 8 February 2005 1:59 PM
 To: Tomcat Users List
 Subject: Re: Disable directory redirect?
 
 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]
 
 

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