You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bhavin Patel <bh...@persistent.co.in> on 2007/08/23 10:31:35 UTC

[users@httpd] mod_rewrite query

Hi,

 

I have one doubt bout mod_rewrite query.

I am using mod_rewrite module with mod_proxy plugin.

 

Basically I have two webservers in which one of is Apache 2.0.52 webserver
used for proxy server.

 

 I have added proxy like

 

ProxyPass / http://host:port/

ProxyPassReverse / http://host:port/

 

So every request comes to apache proxy server will redirect to other server.

 

Now other server internally servers the request and I need to rewrite url by
mod_rewrite.

 

But the thing is if I use both mod_rewrite and mod_proxy in proxy server ..
mod_rewrite is not working as proxy redirect request to other webserver thus
rules on proxy server for mod_rewrite is not working.

 

Can any one tells how to configure proxy and rewrite in one webserver.

 

Regards

Bhavin

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

Re: [users@httpd] mod_rewrite query

Posted by Vincent Bray <no...@gmail.com>.
On 23/08/07, Bhavin Patel <bh...@persistent.co.in> wrote:
> Basically I have two webservers in which one of is Apache 2.0.52 webserver
> used for proxy server.

That's ancient. Can't you upgrade?

> Now other server internally servers the request and I need to rewrite url by
> mod_rewrite.
>
> But the thing is if I use both mod_rewrite and mod_proxy in proxy server ..
> mod_rewrite is not working as proxy redirect request to other webserver thus
> rules on proxy server for mod_rewrite is not working.

See [P] in the documentation for RewriteRule flags. It is used to
proxy the rewritten url.

-- 
noodl

---------------------------------------------------------------------
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