How to use CNAME to properly redirect subdomain from host to Google Cloud -


i have outlined issue below in list format clarity:

  1. i have subdomain named clouddemo.camerontaylor94.com
  2. i used cname record redirect subdomain c.storage.googleapis.com
  3. on google cloud, have bucket named clouddemo.camerontaylor94.com (exactly same subdomain
  4. i uploaded html files, css file, , various text files make resume website bucket exact same file path in host
  5. when go clouddemo.camerontaylor94.com in browser, error "invalid bucket name" appears, , url changes c.storage.googleapis.com
  6. why bucket name invalid - shouldn't subdomain name?

thank you!

to use bucket static site need configure first using gsutil:

https://cloud.google.com/storage/docs/website-configuration

you need upload index.html , 404.html bucket , run this:

gsutil web set -m index.html -e 404.html gs://clouddemo.camerontaylor94.com 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -