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 use subversion and don't want to check out over 1 GB of images onto each developers desktop so how can I just have one central image server and have apache push 404's just from *.jpg for example to this other server

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted
RedirectMatch (.*\.(gif|jpe?g|png))$ http://the.central.server/$1
share|improve this answer
    
That would just return a fixed file, I think the OP is asking that if the file is not available, redirect to another server. –  Andrew Williams May 26 '09 at 16:01
    
Right. Edited my answer. –  vartec May 26 '09 at 16:14
add comment

This could be done with either rewrite rules, or if you just have a single folder of images, configure Apache as a reverse proxy.

share|improve this answer
add comment

I agree with just reverse-proxing the image directory, but what's so bad about an extra 2GB (that you subversion overhead)?

Any attempt to partition the data just leaves more chances for code error.

share|improve this answer
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.