how to create self-hosted CDN with subdomain?

MrUnknow

Well-known member
Trusted Uploader
Jul 6, 2020
563
570
100
26
Pakistan
I'm working on a personal web project, I want to host all files on personal CDN like "cdn.domain.com" is there any way to do it or script available?
 

ckeeper

Well-known member
Nov 8, 2019
623
376
63
Use bunnycdn or stackpath, all you have to do is create the subdomain you want with domain registrar and forward it to either one of those I have mentioned earlier.
 

Azrael

Well-known member
Trusted Seller
Trusted Uploader
May 23, 2020
292
515
93
if you insist on doing all the work, you can check this tutorial:


or this one:


But I suggest going with an external CDN.
 

MrUnknow

Well-known member
Trusted Uploader
Jul 6, 2020
563
570
100
26
Pakistan
Use bunnycdn or stackpath, all you have to do is create the subdomain you want with domain registrar and forward it to either one of those I have mentioned earlier.
These are paid, I was looking for alternative my own free CDN
 

MrUnknow

Well-known member
Trusted Uploader
Jul 6, 2020
563
570
100
26
Pakistan
if you insist on doing all the work, you can check this tutorial:


or this one:


But I suggest going with an external CDN.
This method is for Wordpress, I'm willing to implement in custom codes
 

ckeeper

Well-known member
Nov 8, 2019
623
376
63
These are paid, I was looking for alternative my own free CDN
Look for statically.io -this one is free. Again when I say free you still have to pay for hosting related costs. You basically can run your own cdn with statically.io docker images etc, it is open source, you can also use their's for free. But the question remains if you need support, you are on your own, with the paid cdn you also get support if you need it.
 
Last edited:

Azrael

Well-known member
Trusted Seller
Trusted Uploader
May 23, 2020
292
515
93
which framework do you use?

setup sub-domain etc is the same for custom code. you just need to implement the super cache section in your code/framework.


This method is for Wordpress, I'm willing to implement in custom codes
 

Azrael

Well-known member
Trusted Seller
Trusted Uploader
May 23, 2020
292
515
93
t1.png

Look for statistically.io -this one is free. Again when I say free you still have to pay for hosting related costs. You basically can run your own cdn with statistically.io docker images etc, it is open source, you can also use their's for free. But the question remains if you need support, you are on your own, with the paid cdn you also get support if you need it.
 

MrUnknow

Well-known member
Trusted Uploader
Jul 6, 2020
563
570
100
26
Pakistan
which framework do you use?

setup sub-domain etc is the same for custom code. you just need to implement the super cache section in your code/framework.
I'm creating a website like "zippyshare"
Language: HTML - CSS - PHP

So basically I want all uploaded files moved to CDN for direct download
 

Bazooka

Active member
Jul 22, 2019
350
177
43
I'm creating a website like "zippyshare"
Language: HTML - CSS - PHP

So basically I want all uploaded files moved to CDN for direct download
The setup of a fully self-hosted CDN is complicated and requires decent overall knowledge. But yup, that's the only way if you want to store download files.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu