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

I have apache with one folder used for reverse proxy:

<VirtualHost *:80>
 ProxyPass /site http://server.local:8989/site
 ProxyPassReverse /site http://server.local:8989/site
</VirtualHost *:80>

How can I disable proxy for url's /site/IMAGES/* ?

share|improve this question
up vote 3 down vote accepted

Add before the first ProxyPass:

ProxyPass /site/IMAGES/ !

See the mod_proxy docs for the full details.

share|improve this answer

It wouldn't have been available at the time you asked this question, but if you're using Apache HTTPD 2.4 or later, then as described in the docs you could do it with two location blocks:

<VirtualHost *:80>
  <Location /site>
    ProxyPass        http://server.local:8989/site
    ProxyPassReverse http://server.local:8989/site
  <Location /site/IMAGES>
    ProxyPass "!"

Location blocks are interpreted in order, so you need to put the no-proxy one after the proxy one. Alternately, if you want to keep the proxy directives at the vhost level, the answer given by fission works just fine!

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.