Nov 29, 2012

How to use Google Drive as a free web hosting

Do you know that you can host your website for free using Google Drive? There are 4 simple steps you should follow in order to do that:
  1. Go to your Google Drive and create a new folder.
  2. Make this folder public, by selecting it on the list and clicking the Share button. Then choose Public on the web and click Save.
  3. Upload your HTML, CSS, JS files and images to this folder. You can create subfolders too. The file named index.html will become the default page. Note: Google Drive doesn't support PHP, JSP or ASP scripts yet!
  4. Look at the address bar and copy the folder ID, which comes at the end of the URL:

    https://drive.google.com/#folders/0BzEbtMoF6IXbaVN2Qmx1em9qS0k

    Then go to GDriv.es, paste the folder ID there and choose your own short name. After submitting the form, your website will be available under your alias:

    http://gdriv.es/<alias>

    For example:

    http://gdriv.es/cros
The above example is the Cr OS Linux website.