最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Problem accessing index.html in S3 bucket - Stack Overflow

programmeradmin5浏览0评论

I want to create a web using S3 and Cloudfront in AWS. I tried to do that and, after some tests without success I decided to check if the problem was in my S3 bucket.

Here's the situation, if I go though the console I can access the bucket without problems and go to any file both though the open button of the console or the url associated. Except for the index.html of my file. It's not like it's corrupted, I can download it and it's a valid html. If I try to access it I get this error:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>id</RequestId>
<HostId>hosid</HostId>
</Error>

But there is nothing special about this file, I even did a chmod 777 index.html to be fully sure that the permissions to read it are enabled but the results are the same.

What can be wrong? Is there something special that needs to be added for files index.html to work correctly?

If the permissions of my bucket weren't open enough to read inside I would understand it, but that would apply to all the files, at least in theory. Also, I haven't specified anything related to index.html in the configuration of my bucket.

Besides, there is another index.html deeper in the code, and that one doesn't work either, it's clearly a problem with this kind of file, but I don't know what

发布评论

评论列表(0)

  1. 暂无评论