Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The apache documentation says that you can use mod_rewrite to do similar things to mod_proxy, by using the [P] option. Which should I use? Or is there no difference?

Right now I'm using ProxyPass from mod_proxy, because I also want to include ProxyPassReverse and the documentation implies that you should have this, and it's not clear from the mod_rewrite documentation that ProxyPassReverse (or equivilant functionality) is included when you do RewriteRule .. [P]

Which do you use?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Generally I use ProxyPass for whole directories and rewrite for more specific proxying. I use ProxyPassReverse for both, but for my purposes the rewrite lines work just as well without ProxyPassReverse

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.