www DNS record with GCP static website using CloudFare

0 votes

I am hosting a small static website on a Google Cloud bucket. My website is pierre-alexandre.io and my bucket has the same name. I am using CloudFare as a DNS and the website is currently accessible with those urls:

I added a new CName record to handle the www.pierre-alexandre.io url but it's telling me I should have bucket called www.pierre-alexandre.io instead of pierre-alexandre.io

<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist.</Message>
</Error>

Do you know what would be the proper way to fix it?

Mar 17 in GCP by Rahul
• 3,380 points
57 views

1 answer to this question.

0 votes

There is no way to access a bucket using multiple CNAME records. Your URL must be the same with GCP bucket name whether it is root or sub. I think forwarding the url 

pierre.alexandre.io 

to

www.pierre.alexandre.io

This is the only option that works.

Refer here to how to use URL forwarding on Cloud Fare 

Or you can workaround to having a secondary GCP bucket named your subdomain like 

www.pierre.alexandre.io

answered Apr 5 by Korak
• 5,820 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,190 points
1,113 views
0 votes
1 answer

What are the advantages of using gcp?

Google Cloud Platform is a medium that ...READ MORE

answered Oct 4, 2019 in GCP by Sirajul
• 59,190 points
983 views
0 votes
1 answer

What are the limitations associated with sharing storage resources in GCP?

Sharing storage resources has the following restrictions: It's ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 59,190 points
305 views
0 votes
1 answer

Import an Instance with custom settings on GCP

Run the following command: gcloud compute instances import ...READ MORE

answered Oct 22, 2019 in GCP by Sirajul
• 59,190 points
427 views
+1 vote
1 answer

Error while using a HTTP Cloud function in GCP.

If CORS isn't set up properly, you're ...READ MORE

answered Oct 23, 2019 in GCP by Sirajul
• 59,190 points
591 views
0 votes
1 answer

GCP Error: Access denied for a webpage served by my website.

Check that the object is shared publicly. ...READ MORE

answered Oct 25, 2019 in GCP by Sirajul
• 59,190 points
822 views
0 votes
1 answer

Dual Pricing for GCP Cloud Functions with Firebase

You are misunderstanding the Firebase pricing page. ...READ MORE

answered Mar 17 in GCP by Korak
• 5,820 points
125 views
0 votes
1 answer

Using Pulumi automation API to deploy GCP instances in an http framework does not work

This would allow for constructors to not ...READ MORE

answered Apr 5 in GCP by Korak
• 5,820 points
224 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP