标签: amazon-web-services http amazon-s3 dns routing
假设我在S3上托管了静态网站并希望http://app.example.com提供<s3-bucket>/app/index.html的内容,那可能吗?
http://app.example.com
<s3-bucket>/app/index.html
答案 0 :(得分:0)
是,在AWS控制台中查看S3存储桶,转到“属性”并确保已启用Static Website Hosting。
Static Website Hosting
在您可以配置Index document的设置中。默认情况下,此值设置为index.html。将此更新为app/index.html,然后这将是该存储桶的默认页面。
Index document
index.html
app/index.html