Getting Access Denied when trying to access my website

0

Hey all. I'm very much a novice so please bear with me. I have recently set up a custom domain and a static website from a s3 bucket. Everything was working well. I have attempted to get an SSL cert and have gotten everything set up with the cert. I have public access to my bucket and I'm pretty sure I have all of my routes correct but I keep getting this error when trying to load the site. It seems like it's treating my index.html as XML? This is just listing my file tree in the bucket.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>arosedesign.me</Name>
<Prefix/>
<Marker/>
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>.gitattributes</Key>
<LastModified>2020-04-29T16:27:31.000Z</LastModified>
<ETag>"dcb240655dcbf79b8706d11c8c2a169c"</ETag>
<Size>68</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>.vscode/settings.json</Key>
<LastModified>2020-04-29T16:27:31.000Z</LastModified>
<ETag>"19751b2a32e46d1ba1477f357123a898"</ETag>
<Size>42</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>README.md</Key>
<LastModified>2020-04-29T16:27:31.000Z</LastModified>
<ETag>"3ed9f715ca05b78aceb5705a682af4dd"</ETag>
<Size>157</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>css/styles.css</Key>
<LastModified>2020-04-29T16:27:31.000Z</LastModified>
<ETag>"819f2e7d555f28282eb54de12d06f5ab"</ETag>
<Size>5270</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>index.html</Key>
<LastModified>2020-04-29T16:27:31.000Z</LastModified>
<ETag>"6dafa06451362443dab57e5780c626cb"</ETag>
<Size>3211</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/ABC.jpg</Key>
<LastModified>2020-04-29T16:27:33.000Z</LastModified>
<ETag>"97f4e0eb867ba688071c56456c749908"</ETag>
<Size>605156</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/beer.jpg</Key>
<LastModified>2020-04-29T16:27:32.000Z</LastModified>
<ETag>"102506cb7f94ed55008f225c450d5e24"</ETag>
<Size>160001</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/chargoLogo1.jpg</Key>
<LastModified>2020-04-29T16:27:32.000Z</LastModified>
<ETag>"ddf16827a8f70e12c244df914c231dec"</ETag>
<Size>259460</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/flowers.jpg</Key>
<LastModified>2020-04-29T16:27:32.000Z</LastModified>
<ETag>"17019fb045663b188a7cfce0c3e286d9"</ETag>
<Size>157952</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/leaf.jpg</Key>
<LastModified>2020-04-29T16:27:33.000Z</LastModified>
<ETag>"548a9f5e5318aed8e592f57fcd1ec0a7"</ETag>
<Size>118779</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/manAndDaughter.jpg</Key>
<LastModified>2020-04-29T16:27:33.000Z</LastModified>
<ETag>"a795a8718715761bc175a5989e7139b1"</ETag>
<Size>82798</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/succulents.jpg</Key>
<LastModified>2020-04-29T16:27:33.000Z</LastModified>
<ETag>"70dfad57c2d95152c7064dc64b0b2f68"</ETag>
<Size>229634</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>pics/wine.jpg</Key>
<LastModified>2020-04-29T16:27:33.000Z</LastModified>
<ETag>"50a24752b35fb2a6053c0af910d8252e"</ETag>
<Size>71196</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<Contents>
<Key>workspace/Portfolio Home Page.code-workspace</Key>
<LastModified>2020-04-29T16:27:33.000Z</LastModified>
<ETag>"28e6c7462fb8ab91cc2dde6256ae17be"</ETag>
<Size>67</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
</ListBucketResult>

I'm not sure what information you need from me to further help me but I would appreciate someone walking me through this. Thank you in advance!

philis
demandé il y a 4 ans619 vues
1 réponse
0

SOLVED! I did not set my default root object (index.html) in my cloudfront distribution for my bucket.

philis
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions