I have outlined my issue below in list format for clarity:
- I have a subdomain named
clouddemo.camerontaylor94.com
- I used a CNAME record to redirect the subdomain to
c.storage.googleapis.com
- On Google Cloud, I have a bucket named
clouddemo.camerontaylor94.com
(exactly the same as the subdomain - I uploaded html files, a css file, and some various text files to make up a resume website into the bucket with the exact same file path as in my host
- When I go to clouddemo.camerontaylor94.com in my browser, the error "Invalid Bucket Name" appears, and the URL changes to simply
c.storage.googleapis.com
- Why is the bucket name invalid - shouldn't it be exactly like the subdomain name?
Thank you!
To use your bucket as a static site you need to configure it first using gsutil:
https://cloud.google.com/storage/docs/website-configuration
You probably need to upload an index.html and 404.html to your bucket and then run this: