I’m using Route 53 as my DNS provider and I’d like to use DigitalOcean’s CDN, how would I go about routing a subdomain to a DO CDN?
I’ve setup 2 CNAME records, one to the origin endpoint and one to the edge endpoint
sub1.mydomain.com CNAME space.nyc3.cdn.digitaloceanspaces.com
sub2.mydomain.com CNAME space.nyc3.digitaloceanspaces.com
The first one gives me a 404 The second one gives me a NoSuchBucket response
How do you route a subdomain to your DigitalOcean Spaces CDN with a different DNS provider?
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.
To use Let’sEncrypt certificate with your subdomain you would need to move you DNS management to DigitalOcean.
Steps to using Let’sEncrypt:
You can also bring your own certificate in which case the DNS management can be elsewhere (Route 53 for example) but you do need to setup the CNAME manually. For a Space named
<space>
in<region>
which is configured with the domainwww.mydomain.xyz
, you would need a CNAMEwww.mydomain.xyz
=><space>.<region>.cdn.digitaloceanspaces.com
https://www.digitalocean.com/docs/spaces/how-to/customize-cdn-endpoint/