How to host an entire site on Google Cloud Storage?

后端 未结 8 1127

Is there any way to host an entire site on Google Cloud Storage? That is, map a bucket directly to a top level domain.

E.g. create a bucket called <

8条回答
  •  伪装坚强ぢ
    2020-12-14 01:51

    This is an old question, but in case anyone comes across this post- I encountered the same issue today.

    Google Domains is my domain registrar. Assuming this is also the case for you, here's how you would set it up:

    Under "Custom resource records"...

    Create a CNAME record for "www" that points to "c.storage.googleapis.com".

    Under "Synthetic records"...

    Choose "Subdomain forward". Enter "mydomain.com" in the left-most (subdomain) input and "www.mydomain.com" in the right-most (destination URL) input.

提交回复
热议问题