Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up CDN in a linux server

I'm trying to set up a CDN for my website. I've hosted it in my virtual server on Digital Ocean but I can't find an howto for configuring all the necessary. Have anyone some suggestions?

like image 827
ddtnero Avatar asked May 13 '26 21:05

ddtnero


1 Answers

I'd suggest something like:

  • nginx server (very fast for static assets and has a very low memory usage)
  • varnish for cache (HTTP accelerator)

Your most requested static assets like css, js or images will be cached and served as fast as a lightning. I'd recommend having at least 1GB or 2GB of ram for better results.

Here are some helpful links:

How to install nginx: https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-12-04-lts-precise-pangolin

Install varnish: https://www.digitalocean.com/community/tutorials/how-to-configure-a-clustered-web-server-with-varnish-and-nginx-on-ubuntu-13-10

I guess this will serve your purpose.

like image 140
luisandreramos Avatar answered May 18 '26 06:05

luisandreramos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!