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 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
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

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

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

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.