Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Cloud Storage static website gets 404

I am trying to use Google Cloud Services to host my website, purplechurch.com, using the free tier. I did the following:

  • create a bucket
  • make it public
  • set the website configuration, including my own 404 page

I set the CNAME on my dns to c.storage.googleapis.com and waited a day. The website used to be hosted elsewhere and the domain name is not administered by Google.  (I did not change the A records with their original associated IPs.)

I am unable to access the website using the subdomain or root domain.  When trying to access the website I get a Google generated 404, not my website generated one. The pages and assets are visible using the bucket's public access URL.

A ping returns the original IP location of my website. However DNSchecker.org shows all records with an IP apparently generated by Google and the owner being Google.

I wanted to avoid using a load balancer or LAMP stack due to cost. The website is educational and does not get a lot of traffic.

thank you for any help you might offer...and please let me know if there is a better place to ask the question.

Michael

 
Solved Solved
0 2 3,401
1 ACCEPTED SOLUTION

You could check out this codelab with detailed instructions about how to host a Static Website in Google Cloud with Cloud Storage.

Also this article would be helpful.

Some troubleshooting tips:

  • Check that your bucket name matches your domain name.
  • Check the access to your bucket website is public. You can check this by visiting the url http://storage.googleapis.com/YOURBUCKETNAME/ from an incognito session.
  • Check that you have configured your DNS with the appropriate CNAME records as shown in this guide.
  • Verify your DNS records. You could use MxToolbox.

Just take into account that:

  • Unfortunately, there is no way to serve your bucket content through HTTPS connection (as in no SSL lock icon in the browser’s address bar) when using a custom domain without a Load Balancer or using another tools.

View solution in original post

2 REPLIES 2

You could check out this codelab with detailed instructions about how to host a Static Website in Google Cloud with Cloud Storage.

Also this article would be helpful.

Some troubleshooting tips:

  • Check that your bucket name matches your domain name.
  • Check the access to your bucket website is public. You can check this by visiting the url http://storage.googleapis.com/YOURBUCKETNAME/ from an incognito session.
  • Check that you have configured your DNS with the appropriate CNAME records as shown in this guide.
  • Verify your DNS records. You could use MxToolbox.

Just take into account that:

  • Unfortunately, there is no way to serve your bucket content through HTTPS connection (as in no SSL lock icon in the browser’s address bar) when using a custom domain without a Load Balancer or using another tools.

this this codelab is also showing 404 not found.😅