AWS S3 redirect not working

前端 未结 1 598
不思量自难忘°
不思量自难忘° 2021-01-19 04:27

I\'ve just created a new bucket in AWS S3. I want to host some static files there but if they\'re not all there, redirect to my main server. Seems simple but I\'ve followed

相关标签:
1条回答
  • 2021-01-19 04:50

    Check the console under web site hosting settings to find the web site endpoint hostname for your bucket.

    You are sending requests to the REST endpoint hostname -- as evidenced by the XML error message.

    http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html

    Also, you'll want to replace the key prefix with nothing, not a slash, or you'll end up with two slashes.

    0 讨论(0)
提交回复
热议问题