Redirect to index.html for S3 subfolder

前端 未结 6 742
庸人自扰
庸人自扰 2020-12-25 12:37

I have a domain example.com. I have a S3 bucket named example.com setup with an index.html file that works. Now I like to create two s

6条回答
  •  遥遥无期
    2020-12-25 13:04

    1. Configure your Bucket to deliver a static website
    2. Create a CloudFront Distribution: set your bucket as the Origin and leave the OriginPath empty (default: /)
    3. Create Route53 RecordSet which links to your CloudFront Distribution

    You can find a helpful walkthrough here

    Question: What should happen if your customer enters example.com (without old/new)?

    Edit: 2. is optional. You could also link your Route53 RecordSet to your static website but CloudFront enables you to serve your wesbite with https (with help of AWS Certificate Manager).

提交回复
热议问题