Atle Veka wrote:
Hi, I have run into a snag with mod_rewrite and proxying. I want to have a RewriteRule that proxies a dynamic site (based on a map) which works fine except that I need reverse proxying turned on. So far I have not been able to come up with a solution. Any ideas, other than specifying ProxyPassReverse directives (which if I have to do that I might as well just use mod_proxy and ditch the dynamic part)? Problems arise when the backend server sends a 301 redirect, causing the browser to attempt to bypass the proxy as mod_rewrite isn't modifying the 301.
That's exactly the job of ProxyPassReverse, mod_rewrite cannot adjust things in the HTTP-Response, it acts only in HTTP-Request. I don't think that there is an other way...
-- Robert --------------------------------------------------------------------- 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