How To Setup A Subdomain CDN Via CPanel
Posted by Udegbunam Chukwudi on June - 9 - 2010GD Star Rating
loading...
loading...
@Dragonblogger after reading my post on how to setup W3 Total Cache for a faster wordpress blog, suggested that the tutorial would have been complete if I had included some sort of guide or screenshots on setting up a subdomain which could be used as a CDN (Content Delivery Network).
Setting up a subdomain is a walk in the park especially when using CPanel. Here’s how I set up mine.
Log-in to your site’s CPanel then scroll down to the DOMAINS subpanel as shown below. Click SUBDOMAINS.

In the next page, simply fill in the name of your new subdomain. CPanel will automatically create a folder for that subdomain as shown in the image below under Document Root. Click the Create button and Viola! Your subdomain is now in existence.

NOTE: Your CDN settings, if using this subdomain in W3 Total Cache must point to the document root/ftp path of that subdomain which in the case of this tutorial would be /public_html/subdomain.

How’s that for a fast tutorial. Cheers
.
Related Articles You May Like To Read
- How To Install WordPress In A Subdomain Via CPanel
- How To Install W3 Total Cache 0.9 Setup Guide
- W3 Total Cache Tutorial – Complete Setup Guide With Pictures
- How To Setup A Free Mailing List With MailChimp (Guide)
- Beware Of MMO Blog Setup Services Like This One!
Am thinking you might be into affiliate marketing, I tried something with my subdomain name, I redirected the subdomain to an affiliate website through my affiliate link something like this money.15klaptops.com (this example is not real, please) but I do not know if I write an article and put that subdomain name, which I know will take anybody that click it to my affiliate link will my article be accepted and will that not be going against some rules of not inserting affiliate link in articles, if it possible that my articles get approved that would mean I can create subdomain and link them to affiliate products that I promote…I will post other tips if this a correct thing to do, thanks for wonderful tutorial and I am very grateful for visiting my naija rumour blog and leaving a comment, I hope to develop a solid relationship with you, maybe guest post for you very soon, thanks
That’s a great idea but it will only work with article marketing, if the person in charge of reviewing articles doesn’t check to see where the subdomain URL leads to.
I will try it out with ezinearticles.com where I know they strongly refuse inserting affiliate link in articles and I will let you folks know about my finding, if my articles would be disapproved because of this, thanks.
We await your trial results patiently. Good luck
I can’t believe that you’re supporting this type of spammy behavior.
Good article sites like ezinearticles have policies against affiliate links for very good reasons. How bad does a product have to be if the only way you can sell it is to mislead people?
The only good news is the 15klaptops site takes so long to load that nobody will ever see it!
It’s not spammy behaviour. Ezinearticles does accept affiliate links in their articles. My only error was encouraging Ewealth’s intended use of a sub-domain for redirecting affiliate links. This is so PROHIBITED by EzineArticles and since it’s been a long time since I last read their guidelines, I had clearly forgotten. Check out the last paragraph of the Editorial Guidelines for Submitting To EzineArticles.com. The only Affiliate links accepted are those from a top-level domain name
I’ve also noticed that 15Klaptops is quite slow but I assumed my internet connection was just slow. Thanks for pointing that out
Thanks for pointing out something very important to me, I sincerely do not know that is against Ezinearticles tos, I will not deliberately want to lead people to an affiliate site unknowingly and concerning thanking God that my blog wasn’t loading, it due to a plugin, precisely exit redirect window, I am really grateful to Chucks for mailing me about this people, those I am new to this type of things, I have be very honoured to read your reply which was not deliberate and not intended to spam the article directories, am simple not aware about such issues, thank you very much!
Cheers Ewealths.
Your site seems faster now, but the pictures are missing (cdn subdomain not found). I think it might be best to ignore this cdn subdomain business, and just use the cache plugin. CDN is supposed to be for global server networks that automtically mirror content locally. OK for Google and the big boys, but out of our league (for now).
Thanks for letting me in on our host’s nice short nickname (“I am really grateful to Chucks for mailing me about this people”) I was getting tired just thinking Udegbunam Chukwudi
I didn’t read the comment well and thought you were referring to me when you said “but the pictures are missing (cdn subdomain not found).
With regards to my nickname, it’s actually CHUKS not CHUCKS. Some call me CHUCKY when they want to be mischievous.
Chuks, please, what can I do so that image on the blog can be showing, I like the cdn subdomain thing but image are also part of my blog, thanks
OK Chucky
(I hope English humour translates
)
Hello,
ton of thanks to you for this wonderful guide to setup W3 Total Cache and also to setup self hosted CDN via W3 total cache and finally i successfully create CDN on my subdomain and very well configured W3 total cache.
But last i want to know about that till now my all images moved my cdn but what about the upcoming post and their images? will they automatically moved to my self hosted cdn or i manually have to do some tweak to my upload settings?
Thanks waiting for your reply
You don’t have to stress yourself @ all. All images that have to do with your upcoming posts will be automatically uploaded to both your self hosted CDN and normal wordpress upload folder should in case you some day deactivate W3 Total Cache.
Thanks for the compliments. Feels good to know that my tutorial served you well
Cheers. Good nite.
All good but the subdomain i had created for cdn on my site is accessible. so redirecting the cdn subdomain to my homesite is going to effect my files hosted on that subdomain or not ?.
please help me again .
thanks
I actually have an index.html file installed in the root of my subdomain BUT what this index.html do is to redirect all visits to my subdomain to my blog and OPE it doesn’t affect files hosted in my subdomain
thanks but can i also redirect my subdomain using cpanel on my homesite.
Yes. That would work as well
I dont know why he is arguing if he knows it!
would using the subdomain make a change? since we are using the same host and server queries are still fetched from the same server.
A CDN would be when you serve static files to the user from a nearest location to their home reducing the packet travel time.
Would this also ensure the static files are created? coz when you use a CDN yo need to mirror the sites static content like CSS images and JQueries on the servers.
Using a subdomain wont serve the purpose of speed but it would still be useful if you are mirroring content on some other server {other than your shared hosting account}
another trick would be to use the “snippet” and “archive” arrtibute on your posts, so they get indexed and cached in googles servers and served from their robust CDN whenever they are requested!
Yet another trick would be to use image urls instead of images and using a picasa account to do so.
So the server query would fetch images from the picasa server reducing load on your server.
Frederick said it helped the whole issue of parallel download something like that. Can’t remember his exact words via the tweets we exchanged.
With all ur tutorial ( 3 part about W3 Total Chace )I was succefully install W3 Total Cache Plugin,setup subdomain cdn-selfhosting,etc…everything its okey bro…And feeds of RSS look like okey too, but a weeks ago I used wp-superchace,its trouble with RSS…( info : my wordpress version 2.9.2, thesis theme 1.8…in my subdirectory hosting http://dotcomcell.com/kumpulan-artikel/ ).
Thank You Very Much.
Thanks for the feedback. I’m happy they all worked for you
Oh yes Mr…One question, after all work with W3TC, my favicon in address bar was disappear…how can I fix that?…(becausce CDN setting???)…thank you.
i have some questions udegbunam, as i have finally decided to implement all steps given by you and pretty much impressed!
1. i am using shared hosting ,will it affect if i use this configuration on it ? [do you also use shared hosting]
2. After Implementing all this Steps, when i will updates images into post and other stuff , where it will be uploaded on he subdomain or at default place. [if on subdomain any changes to made? ]
3. will it effect any current thing on my blog?
i am waiting for a reply , it would be a great help from your side!
Got your email but my reply kept bouncing back like you entered your email wrong.
It won’t affect your url structure
All images will be uploaded to both your sub domain cdn and the wordpress default folder should in case you stop using the plugin in the future
I’m on hostgator shared hosting
Cheers
[...] | create-subdomain-cpanel , [...]