CNAME for CDN implementation

  • Posted on July 24, 2013
  • daniloefAsked by daniloef


I want to install a CDN and I set up a CNAME for like:

s ->

But, when I try to view, for example, a image from something like, It redirects me to (with 404 error, obviously).

Any suggestion?

PS: I am using nginx.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@daniellekwint: I don’t see where Pablo’s answer is incorrect? He’s trying to help.

This comment has been deleted

Where are you managing your DNS? I’m not sure that any configuration needs to be made on the server, itself if you’re using a third-party DNS provider, i.e. <a title=“DigitalOcean Labs Presents: DNS Management” href=“”>DigitalOcean’s DNS Manager</a>.