Serving Full HTML Website From Rackspace Cloud Files CDN


Serving Full HTML Website From Rackspace Cloud Files is possible due to their capabilities.Frankly you can serve a full website from CDN. The method is not discovered by me but Jerry Schwartz of RackSpace, I have made it easier in this tutorial Serving Full HTML Website From Rackspace Cloud Files CDN, so that anyone can follow without doing anything using difficult API things.

 

Significance of Serving Full HTML Website From Rackspace Cloud Files CDN

 

The biggest possibility of this full method which we are going to describe in a digested way in this tut on Serving Full HTML Website From Rackspace Cloud Files CDN, is – frankly we can deliver our WordPress Cache from Rackspace Cloud Files CDN, instead of server using a to be developed plugin.

 

Prerequisites for Serving Full HTML Website From Rackspace Cloud Files CDN

 

Its better if you have Rackspace’s standard features for your existing website or rather Rackspace account (Cloud Sites, Cloud Server and Cloud Files). However, the minimum need is a Rackspace account with Cloud Sites (easier) or VPS (difficult) and obviously Rackspace Cloud Files CDN. However, only with Cloud Files its possible to follow this tut for Serving Full HTML Website From Rackspace Cloud Files CDN.

 

Steps for Serving Full HTML Website From Rackspace Cloud Files CDN

 

Easy Steps. Go to Rackspace Cloud login page and login. Go to Cloud Files :

 

Serving Full HTML Website From Rackspace Cloud Files CDN

The principle for Serving Full HTML Website From Rackspace Cloud Files CDN is/are :

 

  • Either a new container or use a new container (does not matter)
  • Upload any HTML page
  • Select that HTML page…

 

cloud files metadata


 

  •  …add POST meta data like X-Container-Meta--Index for index.html in our example. To add meta data simply click the plus sign and a pop up will come :

 

 

cloud files

 

Fill the fields and save it. Thats it. In our case, I did basically copy pasted and saved the source code of our website’s home page as html file. It is actually available here :

 

http://c812286.r86.cf2.rackcdn.com/index.html

 

No normal human will love to see this big url of CDN. That is very easy to solve. There are two ways to solve. One is .htaccess on an existing website and second one is using CNAME. That is what we basically did in Host Rackspace Cloud Sites Subdomain on Dropbox tutorial.

 

Advanced usages

 

But unlike that Host Rackspace Cloud Sites Subdomain on Dropbox tutorial, we will actually add only the CDN url part as CNAME not towards the file. This will give us for example, http://nonexistent.thecustomizewindows.com like CDN served site.

.htaccess part is actually like we do (basically cache do) to serve a static HTML page from cache folder without any change in URL.

But again, for a full website, Serving Full HTML Website From Rackspace Cloud Files CDN will never be practical if we do not create subdirectories / sub folders. Do not worry, that is very easy. A freeware named CyberDuck can do it efficiently with a GUI.

 

Signature


Incoming search terms:

cloudfiles manually set x-container-meta-web-index,create html page
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
About Abhishek

Abhishek Ghosh is an Orthopedic Surgeon, Inventor with 216 Patents, Current editor of The Customize Windows Media Group. You can follow and know more about Dr. +Abhishek Ghosh on Google Plus and follow on Twitter as @AbhishekCTRL.

Trackbacks

  1. Serving Full HTML Website From Rackspace CDN says:

    [...] Serving Full HTML Website From Rackspace Cloud Files CDN [...]

Speak Your Mind

*