G
G
ggagnidze2012-07-02 19:23:30
Nginx
ggagnidze, 2012-07-02 19:23:30

How to make a CDN based on nginx?

Good day.
There is a task to construct CDN.
In my opinion, there are several ways that can be used:
1. PHP script on top of httpd, which will redirect the user to the desired node.
2. C-daemon that will act as httpd and will redirect the user to the desired node.

Perhaps it's not worth reinventing the wheel and nginx has a module that would do a good job with this. Naturally, it is desirable that he take data from mysql, so it will be more convenient.

Actually questions:
1. Which method is better to use?
2. Is there a magic module for some httpd?
3. Perhaps there is a best practice for creating a CDN and you know about it? I would be grateful for a hint, link, tip and any other useful information.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VBart, 2012-07-02
@VBart

www.youtube.com/watch?v=K9wIp8OnfeE
Andrey Alekseev, Maxim Konovalov — Nginx, Inc.

R
Renat Ibragimov, 2012-07-03
@MpaK999

Several rewrite rules will be able to redirect the user to the desired node, for the balancer you can take another haproxy, but otherwise you need to decide the structure of your cdn on your own based on the task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question