Google 云CDN
Google cloud CDN
我的生产资产是来自 google 云存储的服务器,充当 CDN。
url 是这样的(不是真正的路径):
http://storage.googleapis.com/production-store/assets/main.css
production-store
是一个桶,assets
是一个根文件夹。
现在我在我的域上添加了一条 CNAME
记录,就像这样 static.mydomain.com
作为 storage.googleapis.com
的别名,但现在当我这样做时:
http://static.mydomain.com/production-store/assets/main.css
google 给我这个错误:
The requested URL /production-store/assets/main.css was not found on this server. That’s all we know.
我还通过 google 云托管我的域 DNS,使用 google 云 DNS。
我在这里错过了什么?为什么这不起作用?
您的 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
我的生产资产是来自 google 云存储的服务器,充当 CDN。
url 是这样的(不是真正的路径):
http://storage.googleapis.com/production-store/assets/main.css
production-store
是一个桶,assets
是一个根文件夹。
现在我在我的域上添加了一条 CNAME
记录,就像这样 static.mydomain.com
作为 storage.googleapis.com
的别名,但现在当我这样做时:
http://static.mydomain.com/production-store/assets/main.css
google 给我这个错误:
The requested URL /production-store/assets/main.css was not found on this server. That’s all we know.
我还通过 google 云托管我的域 DNS,使用 google 云 DNS。 我在这里错过了什么?为什么这不起作用?
您的 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