我的生产资产是来自google云存储的服务器,充当一个CDN。
url是这样的(不是一条真正的路径):
http://storage.googleapis.com/production-store/assets/main.cssproduction-store是一个桶,assets是一个根文件夹。
现在,我在我的域上添加了一个CNAME记录,比如static.mydomain.com,作为storage.googleapis.com的别名,但是现在,当我这样做时:
http://static.mydomain.com/production-store/assets/main.cssgoogle给了我这个错误:
The requested URL /production-store/assets/main.css was not found on this server. That’s all we know.我还使用托管我的域名DNS。我在这里错过了什么?为什么这不管用?
发布于 2015-03-21 22:01:18
您需要您的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
https://stackoverflow.com/questions/29184352
复制相似问题