根据子域直接请求特定路径

时间:2018-05-16 09:43:15

标签: amazon-web-services http amazon-s3 dns routing

假设我在S3上托管了静态网站并希望http://app.example.com提供<s3-bucket>/app/index.html的内容,那可能吗?

1 个答案:

答案 0 :(得分:0)

是,在AWS控制台中查看S3存储桶,转到“属性”并确保已启用Static Website Hosting

在您可以配置Index document的设置中。默认情况下,此值设置为index.html。将此更新为app/index.html,然后这将是该存储桶的默认页面。