Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Your Answer


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.