Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Do all ProxyPass Directives need a ProxyPassReverse Directive?

ProxyPass /  
ProxyPassReverse /

I saw this snippet, and understand that all traffic coming to is proxied to What does the second line do?

share|improve this question
up vote 8 down vote accepted

This directive lets Apache adjust the URL in the Location, Content-Location and URI headers on HTTP redirect responses.

For example, suppose the local server has address; then

ProxyPass /mirror/foo/
ProxyPassReverse /mirror/foo/
ProxyPassReverseCookiePath / /mirror/foo/

will not only cause a local request for the to be internally converted into a proxy request to (the functionality ProxyPass provides here). It also takes care of redirects the server sends: when is redirected by him to Apache adjusts this to before forwarding the HTTP redirect response to the client. Note that the hostname used for constructing the URL is chosen in respect to the setting of the UseCanonicalName directive.

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.