RE: [users@httpd] Re: Problems with proxying remote URLs

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

 



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:jerome.tytgat@xxxxxxxxxxx] 
Sent: Monday, August 29, 2005 2:26 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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