Hosting a Static Website on Amazon and Azure: Part 1-Site Preparations
Until recently, our company website, mallardcomputer.com, was hosted with a major hosting provider’s shared hosting plan. Pricing wasn’t too bad, and our website performance was running fine, but we wondered if we could simply get a better deal with our web hosting elsewhere, especially due to the fact that we have a relatively small website without too many hits a month, and also since we consult with a few nonprofit clients who also have extremely tiny websites with few hits a month, we wanted to see if we could save them some money as well.
Another company I work for informed me of their decision to move all of their infrastructure to Amazon Web Services, and their CTO informed me that since my company website was a simple website, I could pull it off hosting it in Amazon’s Simple Storage Service, Amazon S3, dirt cheap. After much research, I found out that indeed, it would be quite easy to pull off hosting my company website itself in Amazon S3, and the pricing isn’t too bad either. Amazon S3 customers get a “free tier” for the first year as long as they don’t go over that tier, and after that, pricing would be about 14-15 cents per GB each month, possibly a few pennies more if the website got a high amount of hits that month. In addition, performance and reliability should be better running in a major datacenter service like Amazon S3 than it would be with a traditional hosting provider due to the fact that Amazon S3 has a much larger infrastructure to handle all the “big guys” for their storage needs, so serving my company’s little site up on their massive datacenters should be a piece of cake.
We also learned of another one of the major cloud services players in the market, Windows Azure from Microsoft, and decided to do a little research on how easy it would be to host a website in Windows Azure as well (using their Blob Storage feature). Their pricing is similar to Amazon’s, again they offer high performance and reliability, and we wanted to gain some experience on their interface as well, so we signed up with a three month free trial with them as well. In the end, we chose Amazon S3 over the two to host our website due to the fact that we like the way Amazon handles URL’s a little better than Azure, plus Amazon S3 is easier to work with on our Macs than Azure was, but both services offered good performance, great prices, and pleasant to work with interfaces.
Over the next few blog posts, I’m going to show how to host an entire static website out of using either Amazon S3 or Windows Azure Blob Storage. It was an interesting experiment to say the least, and I hope it ushers in a new and simple way for small churches and nonprofits with simple websites to be able to host their websites extremely affordably.
So “Step 1” was examining our company website and seeing if we used any PHP scripts on our website, and if there was anything we could do to PHP-free our website. After giving it a thorough look, it seems we were using PHP scripts in three areas.
The first area we were using PHP in was our mobile site redirection. We use RapidWeaver, a nice Mac app from RealMac Software, to build our website. We use it because it makes it much easier to build our website without having to code everything from the ground up. Much of it can be done through WYSIWYG, and we only have to dive into the code when we need to make certain changes (such as we’ve tweaked the CSS we’re using in our theme to give off our custom colors, and there’s times when we use web widgets, etc.). RapidWeaver also allows for the extension of plugins to make the software more powerful, and we were using the plugin Mobilize from NimbleHost (By the way, great plugin, great company) to pull off our mobile site redirection, and it sure made setting up mobile site redirection extremely easy. However, Mobilize solely relies on PHP code to pull off mobile site redirection, which obviously wasn’t going to function when we ported our website over to cloud storage. So we had to find another way to pull off our mobile site redirection.
The second area we were using PHP was in our contact forms. We were using RapidWeaver’s default templates for contact forms, which looked and functioned great, but as in all server-side contact forms, they relied solely on PHP. The solution to this problem was actually quite simple. There’s some great hosted form solutions out there such as JotForm, and even Google Docs makes it extremely easy to create a contact form, complete with spreadsheet responses and emailing, and when done, all one has to do is iFrame the link to the form right in to their website. No server-side processing needed. In our case, since we only needed rudimentary basic contact forms, our company’s SharePoint Online package from Office 365 (that’s the subject for another blog entry) has the ability to create public-facing SharePoint pages, and one of the templates included is a basic contact form, so we created our contact forms on our Office 365 SharePoint Online public pages and iFramed them into our website.
The third area (and last area) we were using PHP was with our blog. We were running a hosted WordPress Blog to house our press release feed, making it easier for people to follow our press releases through RSS. Any web developer will tell you that WordPress is heavily PHP as well. In this case, it was another simple solution. Since we weren’t using many plugins on our hosted WordPress Blog, we decided to switch our hosted WordPress Blog over to WordPress.com and allow WordPress.com to handle our blog hosting for us. We also found a template over there we were happy with, and basic blog hosting with them is free, so we were happy about that. WordPress.com does include a few premium features for the extra cost, so for $12 per year, we opted in the custom domain option to have a custom subdomain mapped to our blog. What we no longer have to worry about with our WordPress Blog is all the security patches and updates we used to have to rollout on a regular basis. All we have to do now is simply blog.
With those few optimizations in place, we were ready to try our hand at hosting our site with the major cloud storage providers, and coming up in my next blog entry, I’ll discuss how to take a fully static website and host it entirely out of an Amazon S3 bucket so that it appears to the public, looks the way it should, and maps perfectly with a custom domain. After that in another blog entry I’ll go through the instructions on how to basically do the same thing, just using Azure Blob Storage, so readers will get a chance to see both environments at work and a general comparison of the two. Stay tuned for more!
- Thank you, please keep me in
5 days 1 hour ago
- Item has bid and will sell.
1 week 3 days ago
- Sorry, the product sold some
1 week 3 days ago
- Is this still for sale?
1 week 6 days ago
- I have done Stanley's Epistle
5 weeks 5 days ago
- He's put in a bunch of new
6 weeks 1 day ago
- I would be interested if you
6 weeks 2 days ago
- I would be interested in
6 weeks 6 days ago
- Ramsey books
7 weeks 4 days ago
- I purchased several items
10 weeks 1 day ago