S3中的Routable文件夹

时间:2016-03-22 19:30:13

标签: amazon-s3

我在S3上托管静态网站。一切都运行得很好,期望S3不知何故知道当有人在浏览器中输入mysite /文件夹时,s3必须在myseite / folder / index.html下获取内容index.html。

我能做些什么来实现这个目标吗?

1 个答案:

答案 0 :(得分:0)

静态网站托管

配置存储桶

enter image description here

我测试了这个,它也适用于文件夹,所以:

  • http://mybucket.s3-website-ap-southeast-2.amazonaws.com重定向到/index.htm
  • http://mybucket.s3-website-ap-southeast-2.amazonaws.com/folder/重定向到/folder/index.htm

请参阅文档:Configure Your Bucket as a Website