On Thu, Jun 20, 2002 at 04:08:38PM -0400, Greg Ames wrote: > We cannot tolerate infinite recursion if an ErrorDocument gets an error. The if > statement I changed is how we detect this sort of recursive error. Please take > a look at the backtrace I posted to [EMAIL PROTECTED], under the subject > "2.0.38-39 lockup problem ?". > > If we need to prevent reading the body for certain types of errors, we can't do > it at the expense of loosing our recursive error protection.
The problem is that mod_rewrite is taking what we *know* to be a valid URL (based on the ErrorDocuments directive) and translating it to an invalid one that generates a 400. Fix that. Even if the ErrorDocument were not to exist, it'd generate a 404 which doesn't drop the connection and we'd send the canned 404. Perhaps doing a rewrite on an error is wrong too. In fact, I'd say that the original BAD_REQUEST (400) coming from mod_rewrite should really be a 404. Problem solved. Regardless, this change must be reverted. -- justin