Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I know how to setup a single CDN server by using a cookieless subdomain. Let's say the static content is http://subdomain.domain.com/js/jquery.js. When the user is closer to NA, it should load the content from NA servers and when the user is closer to EU, it should load the content from EU.

My setup: I have shared hosting in NA and EU, operated by the awesome Ubuntu OS.

Question: How do I setup multiple mirroring servers spread across the globe?

Note: I don't want to use any third party CDN services.

share|improve this question
Do you have root access to the servers? –  Louis Matthijssen May 9 '14 at 13:11
I don't. But if I had?! –  machineaddict May 9 '14 at 13:12
If you had you could install rsync on your servers. It checks if there are any modified files, compresses these files and transfers them over a secure (SSH) connection. This way you only have to edit the files on only one server (the rsync server), and then other servers (the rsync clients) will notice that some files have been changed/added/deleted and update. Possibly you could ask your hosting provider to install it? –  Louis Matthijssen May 9 '14 at 13:17
I think I could. And how would, let's say, a NA user connect to NA mirror and not to EU mirror? What system does that? –  machineaddict May 9 '14 at 13:23
Question is not specific. It's about a complex problem with a complex solution. Please try be as specific as possible –  Sergey P. aka azure May 15 '14 at 16:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.