Request mixup with internal redirects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'm seeing some unusual behavior with my module when using internal
redirects. When I redirect, e.g.

ap_internal_redirect(url, r);
return OK;

I noticed the original request continues to process (going through all
the handlers), although the redirect request is returned to the
browser. So, first question is why does the original request continue
to process and is there a way to halt it?

Now the real problem is, on occasion, the next request returns the
original request from the previous request.

To clarify, here's an example

Request 1: /x/y internal redirects to x/y/z (the original request
fails, but x/y/z is return to the browser)
Request 2: /a returns the response from the /x/y request

BTW, all requests are handled by mod_proxy. What's interesting is the
failed response (ErrorDocument) does not contain any headers, just the
body. The second request doesn't hit any handlers and doesn't even
show up in the access log for the vhost. Basically, with logging set
to debug, there's no indication of it being processed by Apache,
except that it returns an Apache error. I can change the error
returned after the redirect and every time I see that is what is
returned by the second request.

Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux