How do I configure Apache for a proxy in exactly one file?

(I have to be tight - I just can't seem to figure out the Apache documentation on how to do this.)

To speed up swf development I do, I want my local machine to fetch my local swf when I browse our test website. Only one local swf - the rest pulled from the test website.

So, I configured apache on port 80 with mod_proxy and proxy_http_module and then added an entry for HOSTS to say that the test server is 127.0.0.1. I need magic spells to put in httpd.conf to say "every call with request http: // test / blah goes to 10.1.1. WHAT IS NOT EXCEPT http: //test/blah/foo.swf , which goes in c: \ proj \ foo.swf ".

Can anyone help with this? Thank.

+2


source to share


2 answers


There is a simple syntax to opt out of a specific url from being proxied:



ProxyPass /blah/foo.swf !
ProxyPass /blah http://10.1.1.whatever

      

+3


source


For the record here, what I ran into is something like:



<VirtualHost *>
    ServerName (testserver-dns)
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass /path/to/swf !
    ProxyPass / http://10.1.2.3/
    ProxyPassReverse / http://10.1.2.3/
    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

      

+2


source







All Articles