Cloudfront enables you to host your static website via s3. You should set your root object to index.html to rewrite https://yourdomainname.com to https://yourdomainname.com/index.html for cleaner urls. However you might run into an issue of having subdirectories in your s3 bucket that you want to do the same for (for example on hosting a hugo blog). Unfortunately Cloudfront doesn’t support this by default.

Continue reading

Author's picture

Kornel Lugosi

Information junkie, programmer. Interested in Linux, Go, Bitcoin, nutritional science and anything Opensource.

Software Engineer

Hungary