Hosting a Simple Static Web Site on Google Cloud Platform Storage

Hosting a Simple Static Web Site on Google Cloud Platform Storage



Hosting your web site can be done simply with the Google Cloud Platform Buckets.

~Hosting a Static Web Site~

~CNAME~
storage.gawkat.com to c.storage.googleapis.com

~Set Permissions~
gsutil acl ch -u AllUsers:R gs://storage.gawkat.com
gsutil defacl set public-read gs://storage.gawkat.com

~Upload~
gsutil rsync -R . gs://storage.gawkat.com

~Set Pages~
gsutil web set -m index.html -e 404.html gs://storage.gawkat.com

~Goto Site~

~More Information~

22 thoughts on “Hosting a Simple Static Web Site on Google Cloud Platform Storage

  1. Я беру для хостинга сайтов VPSки у xhost24, работают очень быстро, лагов и фризов нет – что наконец то не раздражает). Беру уже года 1,5 и все ок, к жалобам лояльны) при оплате на длит срок дают скидки)

  2. Я беру для хостинга сайтов VPSки у xhost24, работают очень быстро, лагов и фризов нет – что наконец то не раздражает). Беру уже года 1,5 и все ок, к жалобам лояльны) при оплате на длит срок дают скидки)

  3. Great, but does it support HTTPS ?

    I already know the answer is NO so Serverless is not ready for prime time.

    Not yet, anyway.

    It is currently 9/2018 so I wonder how many years we will have to wait until Serverless is the ONLY way to host all sites, including HTTPS sites.

  4. ▀▄▀▄▀▄सर्वोत्तम मूल्य सेवाएं #GSuiteGoogleEmailHosting▄▀▄▀▄▀

  5. Very good and helpfull video!!

    Idea for a next video: improve performance of your static assets by adding Google CDN and LB.

  6. its because of this complexity im still using other hosting sites like godaddy. I know that the GCP is great, but i feel likes it's not for common people.

  7. I created bucket, but website settings button does'nt give me edit website configuration option. Any ideas of what is the reason?

  8. Thanks for taking the time to do this. That's thanks on behalf of the other 5750ish people who wandered through here. Nicely done.

  9. To add CNAME please go through these steps.
    https://stackoverflow.com/a/45908563/7799917. Just check it out if it helps.

  10. How the fuck we adding a CNAME ?!? Its never ever explain, even on google documentation
    Its a hardest part of all this and its never explain !!
    Ahhhhhh I'm dying…..

  11. Hey, thanks for the tutorial, though I was hoping you could help me out.

    I can only get this up: https://storage.googleapis.com/www.ourxo.co/index.html

    Not www.ourxo.co or www.ourxo.co/index.html.

    Do you know what might be going wrong?

  12. I was trying to input a Hostgator domain in Google, got stuck in the ownership validation.
    Is it possible to point those 2?

  13. Is it possible to host more than one website… as far as I know they give a lot of storage space, but I dont understand if I can use it in different websites

Leave a Reply

Your email address will not be published. Required fields are marked *