Breaking News
Loading...
Friday 9 August 2013

How to Host Website on Google Drive

23:53
            If you are looking for a place to quickly host your websites but don’t have access to any web server, Google Drive is a great alternative. You can use Google Drive to host basic websites or even complex JavaScript based web apps. You may publish any kind of static content on your website including HTML pages, images, CSS, icons, audio and video files.

Google Drives serves your website over HTTPS and thus can be be used for hosting custom Facebook Pages since Facebook requires that custom pages are only served over secure HTTP.

How to Host your Website on Google Drive

The official procedure for hosting websites on Google Drive involves a couple of steps.

You need to upload your website files to a folder inside Google Drive, set the sharing permissions of that folder as public, open the index.html file that you uploaded in the Google Docs viewer and then click the “Preview” link to get the URL of your website.

The process may not be complicated but a little time-consuming for sure. There’s a better way though that will let you publish your websites on to Google Drive in a single step.

From your computer to Google Drive in one step

Just put all your website assets in a zip file and then click here to upload that zip file to your Google Drive. Once the file has uploaded, the tool will generate the public URL of your website in the same step. Isn't that simple?

Internally, this little Google Script is doing all the hard work for you. If you are using the tool for the first time, you may have to click the “Authorize” button since the script needs your permission to upload that zip file to your Google Drive.

How to Host CSS or JavaScript Files in Blogger using Google Drive.

There are a few things you need to know before hosting websites on Google Drive. One, you need to have an index.html as that file will be served when someone tries to access the homepage of your site. Second, Google Drive websites have a URL structure like googledrive.com/host/ and there’s no way to change the default URL.

For instance, if your are hosting a website on Google Drive but wish to serve it under your own custom domain, that’s not possible yet. There’s a workaround though.


Share This :
Tags:

0 comments:

Post a Comment

 
Toggle Footer