You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bob Ionescu <bo...@googlemail.com> on 2009/09/03 21:46:02 UTC

Re: [users@httpd] mod_rewrite internal sub-request returns status 200 instead of expected 404 (mod_proxy issue?)

2009/9/3 Brett Delle Grazie <br...@intact-is.com>:
> I've tried the sub-request mechanism of mod_rewrite (via !-U condition)
> but the sub-request always returns status 200 instead of 404 (even
> though the first document doesn't exist on B).
>
> Does anyone know if this is an existing bug with mod_rewrite or is this
> expected behaviour?

Expected. The handler is not invoked in this sub-request lookup. So in
fact, you can only check if the resource is accessible on server A
(->access controls).

Bob

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org