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

This is a trivialised example highlighting my situation:

ProxyPass /google/
ProxyPassReverse /google/

   ProxyPass /google/
   ProxyPassReverse /google/

In this case a request "" will try to go to

I have also found that a ProxyPass defined in main will take precedence over actual directories available in a vhost - eg if in above instead of the VirtualHost having ProxyPass rules its DocumentRoot contained a directory named "google" the Proxy would still be in effect.

Per the apache docs, I had been led to believe any "main" definition would be overridden by a VirtualHost able to satisfy the request.

share|improve this question
In your example you don't list a ServerName or ServerAlias for the VirtualHost and you're using the loopback address... So are you using to hit it or using hostname/google where hostname resolves to – Jeremy Bouse Jul 21 '09 at 1:02
I should have specified - the config is IP based virtualhosting so name becomes irrelevant. – DisabledLeopard Aug 6 '09 at 4:58
up vote 2 down vote accepted

Unfortunately, You are right. I don't know if this would be right, but you may remedy it by including the default proxy options to [VirtualHost default] section ( like this:

<VirtualHost _default_:80>
        ServerName noneset
        DocumentRoot /dev/null
        ProxyPass /google/
        ProxyPassReverse /google/

<VirtualHost *:80>
        ServerName myhost
        DocumentRoot /var/www
        ProxyPass /google/
        ProxyPassReverse /google/


<Proxy *>
                Order deny,allow
                Allow from all
share|improve this answer
Thanks - seems ProxyPass just isn't over-ridable at all. I've ended up rewriting all my ProxyPass rules as RewriteRule [P] which does the same job but also allows other RewriteRules etc to be processed instead of the ProxyPass being run first & only. – DisabledLeopard Aug 6 '09 at 5:15

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.