Host a Website for FREE on Google Cloud Storage. If you are having a static website with only HTML, CSS, JS and Images, you don’t need a web server. You can upload your website files to Google Cloud Storage and make your website live within 5 minutes.
In this guide you are going to learn how to host a website on Google Cloud Storage.
|Alibaba Cloud||512 MB||20 GB||$2.50/mo|
|Cloudways – Managed Cloud||1 GB||25 GB||$10/mo|
|Kinsta – Google Cloud Managed WP||1 Website||10 GB||$30/mo|
5 Steps to Set Up Static Website
- Have your Domain name registered
- Create a Google Cloud Account
- Verify Domain ownership
- Point your Domain to Cloud Storage
- Set up website
I assume you already have your domain name and your Google Cloud account. Let’s proceed to verify you are the owner of your domain.
Verify Domain Ownership
Google Cloud Storage uses the Domain name provider method in the Search Console to verify domain ownership. So go to your webmaster search console and Add a Property for your domain name.Point your Domain to Cloud Storage
Point your Domain to Cloud Storage
To point your domain to Cloud Storage you need to create a
CNAME record pointing
Go to your Domain’s DNS settings and click Add record and select
In the Name enter
In the Points to enter
Save the record
Set up website
Create Google Cloud Storage Bucket
Go to your Google Cloud Console and navigate to Storage.
Click Create Bucket.
In Name enter your domain name (
In Default storage class choose
In Location select your nearest location
Go to Permissions tab in your bucket and click Add Members.
In Members enter
In Roles select
Storage Object Viewer
Now your bucket is visible to public.
Upload Website Files
Now you can upload your website files to your bucket.
Update Website Configuration
Go to Storage and click the 3 dots to the right of your bucket name and click Edit website configuration.
In Main page enter your main html filename (
You can also add the Error page
Once your DNS is propagated globally you can view your website (
www.yourdomainname.com) and confirm as expected.
By default, your website is only accessible with HTTP, if you want to enable HTTPS you can refer this guide.
We hope this guide helps you to get your website hosted on Google Cloud Storage.