mardi 23 juin 2015

[AWS]s3 bucket web hosting not working

I'm googling since several hour without solution.

I'm trying to manage my bucket as web directory but it's not working fine.

Here is my bucket policy :

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::my_bucket/*"
        }
    ]
}

I have an index html file at top level of the bucket, and a directory.

I can access the index file like this :

http://ift.tt/1SFQdJX

But all the following request give an xml access access denied error

http://ift.tt/1HaVDdQ

http://ift.tt/1SFQdJZ

http://ift.tt/1HaVDdS

http://ift.tt/1SFQe0d

I haven't found a solution. Please let me konow if someone know how to achieve this, so that I can browse my bucket through firefox or another browser.

Thanks




Aucun commentaire:

Enregistrer un commentaire