In Apache 1.3 I thought that was the case because what mod_rewrite actually 
does is prefixing to the rewritten URL with proxy: when the [P] flag is 
appended to the rewrite rule. I may be mistaken though, and 1.3 may use the 
same order as 2.0.

In Apache 2.0 mod_proxy is always run before mod_rewrite. That is why when you 
have a mix of ProxyPass and RewriteRule ... [P] that conflict, the RewriteRule 
is never executed. When that is the case, I use RewriteRules to do the 
proxying, and then add the ProxyPassReverse as needed. Then mod_rewrite forces 
the request through the proxy module by setting some fields in the request 
record object to apropriate values. SO although the proxy hooks are executed 
before the rewrite hooks, the rewrite module apparently has a way to invoke 
mod_proxy...


-ascs

-----Original Message-----
From: Jérôme Tytgat [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 2:26 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Re: Problems with proxying remote URLs

Ok.

How can you tell that mod_rewrite has to be executed BEFORE mod_proxy.

I would have used proxypass, but I can't because my rewrite are never reached 
and I need some things to be rewritten BEFORE they are proxyfied.

Thanks.

J.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to