谷歌云CDN

时间:2015-03-21 15:17:56

标签: dns google-cloud-storage

我的生产资产是来自谷歌云存储的服务器,充当CDN。

网址是这样的(不是真正的路径):

http://storage.googleapis.com/production-store/assets/main.css

production-store是一个存储桶,assets是一个根文件夹。

现在,我在我的域名中添加了CNAMEstatic.mydomain.com作为storage.googleapis.com的别名,但现在当我这样做时:

http://static.mydomain.com/production-store/assets/main.css

谷歌给了我这个错误:

The requested URL /production-store/assets/main.css was not found on this server. That’s all we know.

我还使用谷歌云DNS托管我的域名DNS和谷歌云。 我在这里错过了什么?为什么这不起作用?

1 个答案:

答案 0 :(得分:3)

您需要将CNAME指向c.storage.googleapis.com而不是storage.googleapis.com

另见:

https://cloud.google.com/storage/docs/reference-uris#cname https://cloud.google.com/storage/docs/website-configuration