2 Answers
- Newest
- Most votes
- Most comments
1
Hi,
I'm glad you are able to resolve the issue .
This is for future reference How do I use CloudFront to serve a static website hosted on Amazon S3?
answered 2 years ago
0
Hi again,
Another question.
In my static web, I have three address:
- <My Domain> (ej. https://webtest.com)
- <CloudFront Domain> (ej. https://hdjshdksf.cloudfront.net)
- <S3 Bucket Domain> (ej. http://webtest.com.s3-website-eu-west-1.amazonaws.com)
I've added a 404.html error document in my bucket and specified it their properties.
If I try to go to a non existent path in:
I get the 404.html error document. Fine, everything is working.
But, if I try to go to (same false path):
- https://hdjshdksf.cloudfront.net/non-existent-path/index.html
- https://webtest.com/non-existent-path/index.html
I get this ugly message:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>D5KM6QNT1WNG339Z</RequestId>
<HostId>aa1YmAUJ/E5BIXXUfJ/Qm+DMg0s0lUIutTF+qlkelIcK9eeIHdcfy93f0x038C56eORyf5IBPNY=</HostId>
</Error>
How can I resolve it?
Regards
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago