无法通过负载平衡器访问云存储存储桶中的公共对象 [英] Public object in cloud storage bucket isn't accessible through load balancer
问题描述
我为我的Google CLoud Storage存储分区设置了CDN设置。我已经上传了一个公共对象,你可以在这里看到公共链接: https://storage.googleapis.com/staging.twinkle-4acfc.appspot.com/example_out_message_bg.9.png
所以为了使CDN能够工作,按照这个问题,我需要通过负载平衡器访问桶。
好的,我设置了负载平衡器,这个URL是定向的到桶,它是一个公共对象,但响应包含XML访问错误。
http://130.211.26.19/stagemedia/example_out_message_bg.9.png 其实,你可以改变任何路径,只需尝试/ a,错误是th同样。你的对象需要匹配整个路径,在这种情况下是stagemedia /, example_out_message_bg.9.png。尝试使用全名创建对象,包括stagemedia /部分。
I have CDN setup for my Google CLoud Storage bucket. I have uploaded a public object, you can see it with the public link here: https://storage.googleapis.com/staging.twinkle-4acfc.appspot.com/example_out_message_bg.9.png
So in order for the CDN to work, as per this question, I need to access the bucket through the load balancer.
Okay, so I setup the load balancer, this URL is directed to the bucket, and it is a public object, but the response contains an XML access error.
http://130.211.26.19/stagemedia/example_out_message_bg.9.png
In fact, you can change the path to anything, just try /a, the error is the same. Is the load balancer set up incorrectly?
Your object needs to match the whole path, which in this case is "stagemedia/example_out_message_bg.9.png". Try creating an object with that whole name, including the "stagemedia/" part.
这篇关于无法通过负载平衡器访问云存储存储桶中的公共对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!