Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've created a proxy in apache that overlays styles from a test site over content from a production site. This works fine, however there are a number of files that exist in prod.site.com/static (that are content managed) but not in test.site.com/static. This shows with a number of "File does not exist:" errors in the apache log.

From HTTPd:

<VirtualHost *:82>
    ProxyPreserveHost Off

    ProxyPass /static/ http://test.site.com/static/
    ProxyPass / http://prod.site.com/
    ProxyPassReverse / http://prod.site.com/

    ServerName hybrid.site.com
</VirtualHost>

Can anyone offer advice on the best way to fall back to prod.site.com/static if a file can't be found in test.site.com/static? I'm looking into using mod_proxy_balancer but it seems like a dead end.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

mod_rewrite sounds like an answer for your problem. For practical examples, see the official guide

share|improve this answer
    
Still tweaking a bit... but it's looking promising! –  Andrew Aug 4 '10 at 21:27
add comment

Your Answer

 
discard

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.