Configure Cloudflare CNAME for Sirv
Short answer
In Cloudflare, open your domain's DNS tab and create a CNAME record that points your subdomain to your Sirv domain, for example cdn pointing to mikesbikes.sirv.com. Then set the Proxy status to DNS only by clicking the cloud icon until it turns grey, so the custom domain is set up correctly.
After reading this you will know
- How to create the CNAME record for Sirv in Cloudflare
- Why the Proxy status must be set to DNS only

CloudFlare is a popular security and CDN service, often used in conjunction with Sirv CDN.
If you manage your domain with CloudFlare, it’s easy to create a personalized sub-domain (or several) for your Sirv account, via a CNAME record.
Configure your CNAME via CloudFlare
Section titled “Configure your CNAME via CloudFlare”- Log in to your CloudFlare account.
- Select your domain from the dropdown menu in the top left.
- Select the DNS tab.

-
Create a CNAME record pointing to your Sirv domain. For example, say your Sirv account name is mikesbikes and you want to serve files from cdn.mike-bikes.com.
Then the CNAME should be cdn and the target should be mikesbikes.sirv.com, like this:

- Set the Proxy Status to DNS Only. Toggle the CloudFlare proxy off (click on the cloud icon to make it grey) to ensure the CNAME record for the custom domain is set up correctly.

CloudFlare does not proxy third-party domains, only your own domain.
If mikesbikes.sirv.com is proxied by CloudFlare and the website uses images served by mikesbikes.sirv.com (a third-party CDN), the request to cdn.mike-bikes.com would not be proxied.
The grey cloud icon ensures traffic for the DNS record is not proxied, but it is still served by CloudFlare.
