Devin
02/03/2022, 3:20 PM<http://dev.comicshelper.com|dev.comicshelper.com>
where if you request that URL, it goes ahead and grabs the index.html file and returns it successfully. This site happens to be written in Gatsby but that seems not relevant. Because it’s in Gatsby if you navigate around, links are hydrated and the site works as you’d expect.
If however, you navigate directly to <http://dev.comicshelper.com/blog|dev.comicshelper.com/blog>
you get a 403. Document not found. If I go into the bucket, and view it I see it
index.html
january-2022/
If I try to navigate directly to the object in the bucket via the console… I get an Access denied.
Do I have something messed up in my cloudfront configuration somewhere. What are some explanations for this document not being delivered?Devin
02/03/2022, 3:40 PMJames
02/03/2022, 6:43 PMDevin
02/03/2022, 6:47 PMJames
02/03/2022, 6:52 PMnew StaticSite(this, "Site", {
path: "path/to/src",
cfDistribution: {
errorResponses: [
{
httpStatus: 403,
responseHttpStatus: 200,
responsePagePath: "/index.html",
},
],
},
});
Devin
02/03/2022, 11:41 PMindex.html
/blog
-- index.html
If I use this setup, cf will resolve /blog
to /
which isn’t what I’m looking for. It was a worthwhile attempt and close to the isssue I think