Mobile app version of vmapp.org
Login or Join
Cofer257

: Can I route only a subdomain through CloudFlare? I'm currently using Amazon CloudFront as a CDN for my images on a subdomain img.example.com, from an origin origin.example.com. I recently saw

@Cofer257

Posted in: #Cdn #Cloudflare

I'm currently using Amazon CloudFront as a CDN for my images on a subdomain img.example.com, from an origin origin.example.com.

I recently saw that CloudFlare provide a CDN for a flat fee so I'm interested in trying them out. But when I log in the only option is to add my main domain example.com and not the origin. Here's the error:


We were unable to identify origin.example.com as a registered domain. Please ensure you are providing the root domain and not any subdomains (e.g., example.com, not subdomain.example.com) (Code: 1099)


I don't want to route my whole site traffic through CloudFlare, only the image subdomain. Is this possible?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer257

2 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

CloudFlare don't allow this in their Terms of Use. I received the following email from CloudFlare when I attempted this on an image-only subdomain once:


Also note here -- you seem to only be using CloudFlare for this products.xyzmedia.co.uk subdomain. We do not permit CloudFlare to be used only for static file delivery. You will need to have xyzmedia.co.uk or xyzmedia.co.uk resolving and proxied by CloudFlare to continue using our service. This is outlined in section 10 of our Terms of Service.


The specific line notes:


Additionally, the purpose of CloudFlare's Service is to proxy web content, not store data. Using an account primarily as an online storage space, including the storage or caching of a disproportionate percentage of pictures, movies, audio files, or other non-HTML content, is prohibited.

10% popularity Vote Up Vote Down


 

@Si4351233

Yes: add the root domain, then you can select which subdomains to route through CloudFlare in the DNS tab, at which point you can disable CloudFlare on the domain and enable it on the subdomains by clicking the cloud icon next to the relevant DNS record.



In this example, I have georgegarside.com through CloudFlare and server.georgegarside.com bypassing CloudFlare, however this can be reversed by clicking the cloud icons on the right.


A gray cloud means that the traffic is not passing through the CloudFlare network.


Source: support.cloudflare.com/hc/en-us/articles/200168756-How-do-I-add-a-subdomain-

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme