When thinking about overall website performance, speed is key. There are a lot of ways to improve your website and application speed – and we cover different types of solutions at The Cloud Journey site.
One way to optimize your website is by making it static. With a Cloud Files account, you can create a static website by using a CDN-enabled storage container. Your website can be hosted entirely from Cloud Files, without needing any servers. Hosting a static website on Cloud Files and the Akamai CDN gives your website incredibly quick load times and increases website reliability.
Rackspace’s Hart Hoover used this approach for the Rackspace DevOps blog, transitioning the site from Cloud Servers to Cloud Files. In his words, the solution was “stupid easy and extremely scalable.”
To create a static website using Cloud Files, start by creating a CDN-enabled storage container. Any HTML or static web pages in the container will become available through a static website once you set the X-Container-Meta-Web-Index header to index.html or other index page of your choice. You may also create subdirectories in your website by creating pseudo-directories, as outlined in the pseudo directory section of this guide. Each pseudo-directory becomes a subdirectory in the website.
Note: The page you set for X-Container-Meta-Web-Index becomes the index page for every subdirectory in your website; each pseudo-directory should contain a file with that name. So, if you set X-Container-Meta-Web-Index to index.html, you should have an index.html page in each pseudo-directory. If you do not have the named index page, visits to myhost/subdir/ will return a 404 error.
Visit The Cloud Journey site to discover additional solutions, as well as detailed information about how to implement them in the Rackspace Cloud.
Visit the Open Cloud Community, where we have set up a thread on this topic to answer any questions you have.
This is probably the most cost effective solution for a static site I have seen so far! No server, minimal set-up, extremely good scalability. Well done Rackspace!