mod_rewrite query

mod_rewrite query

am 23.08.2007 10:31:35 von Bhavin Patel

------=_NextPart_000_0131_01C7E58E.1F253F80
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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.

------=_NextPart_000_0131_01C7E58E.1F253F80
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

emas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">












..0pt;
font-family:Arial'>Hi,



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>I have one doubt bout mod_rewrite query. >



..0pt;
font-family:Arial'>I am using mod_rewrite module with mod_proxy plugin.=



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>Basically I have two webservers in which one of is Apache
2.0.52 webserver used for proxy server.



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'> I have added proxy like
>

..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>ProxyPass / http://host:port/
>

..0pt;
font-family:Arial'>ProxyPassReverse / http://h=
ost:port/



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>So every request comes to apache proxy server will redire=
ct
to other server.



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>Now other server internally servers the request and I nee=
d
to rewrite url by mod_rewrite.



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>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 othe=
r
webserver thus rules on proxy server for mod_rewrite is not working. :p>



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>Can any one tells how to configure proxy and rewrite in o=
ne
webserver.



..0pt;
font-family:Arial'> 



..0pt;
font-family:Arial'>Regards



..0pt;
font-family:Arial'>Bhavin



font-size:
12.0pt'> 





DISCLAIMER=0A=
===========0A=
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 inten=
ded recipient, you are not authorized to read, retain, copy, print, distribu=
te or use this message. If you have received this communication in error, pl=
ease notify the sender and delete all copies of this message. Persistent Sys=
tems Pvt. Ltd. does not accept any liability for virus infected mails.






------=_NextPart_000_0131_01C7E58E.1F253F80--

Re: mod_rewrite query

am 23.08.2007 11:12:52 von noodlet

On 23/08/07, Bhavin Patel 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 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