Disable ProxyPass rules within a virtual host on apache 2

Posted by chinto on Server Fault See other posts from Server Fault or by chinto
Published on 2009-11-05T23:37:11Z Indexed on 2010/03/14 17:05 UTC
Read the original article Hit count: 597

Filed under:
|
|
|

I have a global proxypass rule in httpd.conf

rules at global level

ProxyPass /test/css http://myserver:7788/test/css
ProxyPassReverse /test/css http://myserver:7788/test/css

and I have a virtual host

Listen localhost:7788
NameVirtualHost localhost:7788
<VirtualHost localhost:7788>
    Alias /test/css/ "C:/jboss/server/default/deploy/test.ear/test-web-app.war/css/"
</VirtualHost>

I would like to disable all global proxypass rules applying in this virtual host? NoProxy doesn't seem to work.

(The reason I would like to do this is I have below global rules which create a 502 proxy loop if applied within this virtual host

#pass all requests to application server
ProxyPass        /test  	http://localhost:8080/test
ProxyPassReverse /test  	http://localhost:8080/test

)

What I'm trying to do is, serve all static content (like css) using apache, while still proxying all the rest of requests to the application server.

© Server Fault or respective owner

Related posts about apache

Related posts about apache2