GGICE / hexo-icer

A simple hexo theme.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployment on S3 hosted Website results in NoSuchKey error

IsmaelKP2 opened this issue · comments

Hello,

Amazing job on that template.

I am trying to deploy my website to S3 (with CloudFront in front)

After hexo generate hexo deploy using hexo-aws-deployer package

The home page is showing correctly but all links are actually reffering to a folder instead of the index.html it should be referring to.

Not sure how it is supposed to work and if I miss configuration on AWS side or Hexo side.

screen shot 2019-02-03 at 21 09 29

Any help will help I am happy to give more context.
Thanks,

The issue came from AWS. Cloudfront only supports root default files but not subdirectories Resolved with an AWS Lambda@Edge to rewrite the URL.

(may help other people)
https://aws.amazon.com/blogs/compute/implementing-default-directory-indexes-in-amazon-s3-backed-amazon-cloudfront-origins-using-lambdaedge/

Closing the issue,