Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to host a website with Google Cloud without a domain?

I want to host some html files on Google Cloud and wondered, if this is possible to do, without adding a custom domain...

With for example Cloudflare or AWS, that's possible...

like image 738
Ben Tailer Avatar asked Mar 20 '18 19:03

Ben Tailer


People also ask

Can I use Google Cloud to host website?

Google Cloud has the feature of hosting a secure and reliable website easily, You can do more work at less price with Google Cloud.

Can I host simple website on Google?

You can host your website, blog, or online store on your domain registered on your Google Domain. Google has tools and resources to help you create a website. You can: Choose a website builder.

How much does it cost to host a website on Google Cloud?

Google Web Hosting Pricing — Starting at $49.00 / Month.

Does Google do free website hosting?

Google Cloud Hosting isn't technically free. However, it does offer a one-year free trial that includes: One website. Unlimited storage.


1 Answers

GCS objects can be loaded just fine from a web browser, with or without a domain. They follow either of these naming schemes:

https://storage.googleapis.com/YOUR_BUCKET_NAME/YOUR_OBJECT_NAME
https://YOUR_BUCKET_NAME.storage.googleapis.com/YOUR_OBJECT_NAME

If you simply need to serve resources via a web browser, this is quite sufficient.

If you need a bucket to represent an entire website, it'd be a good idea to use a custom domain. This enables a handful of nice, website-like features, such as defining default pages when none is specified as well as providing a customization 404 page.

like image 184
Brandon Yarbrough Avatar answered Sep 21 '22 02:09

Brandon Yarbrough