Google Drive, as you might know, is one of the more recent cloud storage services. For starters, it offers some functionality that makes it better than its closest competitors, i.e. SkyDrive and DropBox. One such feature is the seamless integration with other Google products, and the story doesn't end there. Google Drive will also let you host static web content, so that you can run a simple website right on your drive! This sort of functionality was only offered by DropBox before. Now, it's Google's turn to establish its superiority. In this post, we'll talk about hosting your own web content on Google Drive.
Cloud storage is a great way to host web pages. For one, it lets web developers get a feel of how their websites would actually look on the web. Besides, it could be used to share photos, videos, and other information with friends and family, without fear of people from the outside hacking into your system, or spamming your website etc. It is also a great way for freelancers to show their work to their clients.
Hosting web content on Google Drive
Now you can't host dynamic websites on Google Drive. Nothing that requires server-end computing. Technologies like PHP, ASP etc require back-end processing, so they can't run. You can only host simple, static websites that are HTML, CSS, and JavaScript driven.
Now you could use this just like you'd use GooglePages or code.google.com for a similar purpose. But GooglePages has been replaces with Google Sites, and no longer supports direct uploading, which is kind of a let-down, because we need to directly upload webpages in order to test them on Google Drive. Google Code, on the other hand, has bandwidth issues. Hence, Google Drive is the best option you have for hosting your static website.
How to host a website on Google Drive?
- To host a website on your Drive, log into your Google Drive account from a web browser,
- Create a new folder inside main Google Drive folder (i.e, My Drive).
- Now that you've created a folder to host your files, it's time to put the files in.
- Upload all your web files (index, images, css, js) in this folder.
- Now, you need to share it with the public.
- To do this, select the folder, and then click on Share >> Share.....
Now, look under the "Who has access" section, and change the setting from Private to "Public on the web", and save it.
You are all set to host you web page on Google Drive. Now, to view the webpage you created, you need to ct your hosting link. So, open the web page folder from Google Drive. Under that, click on index.html file and open it.

After opening index file, Click on preview. And your webpage will appear in new tab. That is your hosting URL, Copy it and share it with world to show your Web Page.



0 comments:
Post a Comment