Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does that setting apply to any subdirectory? The article linked in a comment above states otherwise.


> Does that setting apply to any subdirectory? The article linked in a comment above states otherwise.

No, unfortunately it doesn't.

One workaround that I use is to upload files without an extension and explicitly set their content type as `text/html` in S3. So a request to `/about` just serves a file in your S3 bucket called `about`. This works with both CloudFront and S3.

I wrote about a few more details of the process here: https://brandur.org/fragments/aws-static-hosting-workaround




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: