Jozef
Jozef

Reputation: 11

CloudFlare to CDN google cloud bucket got error

https://note_dummy.storage.googleapis.com/cdn.json and it works for public access

In cloudflare:

  1. I made a CNAME with name: cdn and target: note_dummy.storage.googleapis.com
  2. I add a page rule for https://cdn.myurl.com/* with 3 settings: Browser Cache TTL, Cache Level, Edge Cache TTL

however when I use https://cdn.myurl.com/cdn.json, it responds an error:

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

I have no idea what could be wrong?

Upvotes: -1

Views: 35

Answers (1)

yannco
yannco

Reputation: 176

As mentioned in the suggestions in this SO post, try matching the name of your bucket to the name of your domain or configure the settings in CloudFlare console.

Aside from that, you can also take a look and follow the instructions mentioned in this documentation about hosting a static website. As part of the setup, you have to set up an HTTPS load balancer and SSL certificate since Cloud Storage doesn’t support custom domains with HTTPS on its own.

Upvotes: 1

Related Questions