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 have a master caching server with nginx. Its setup with proxy_pass and proxy_cache.
But I want to add more nginx caching servers in other locations that will all contain the same contents with master cache server.
So it wouldnt matter to which server I send the request.
Is it possible to just rsync the cache directory across all the servers?

share|improve this question

Not an exact answer, since I don't actually know if it is ok to rsync cache directories (have you tried? what results you got?), but if you configured nginx correctly it shouldn't matter to which server you send requests, they'll fetch it from the cache if available and go to origin servers if not - that's the whole point of caching: they will self populate with use.

I wouldn't bother too much about initial seeding unless you have some very strange very specific scenario.

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.