How to create sub-domain for self hosted CDN purpose?

Hello all,

I want to set up a self hosted CDN for my websites. (Already use Cloudflare) How do I create a sub-domain and pointing it to the main site using an easy engine?

Thanks all.


if you already use Cloudflare, hosting your static assets on a subdomain or on your main domain will not make any differences (it can even make your website loading slower by increasing DNS & HTTP requests).