我在S3上托管静态网站。一切都运行得很好,期望S3不知何故知道当有人在浏览器中输入mysite /文件夹时,s3必须在myseite / folder / index.html下获取内容index.html。
我能做些什么来实现这个目标吗?
答案 0 :(得分:0)
为静态网站托管
配置存储桶我测试了这个,它也适用于文件夹,所以:
http://mybucket.s3-website-ap-southeast-2.amazonaws.com
重定向到/index.htm
http://mybucket.s3-website-ap-southeast-2.amazonaws.com/folder/
重定向到/folder/index.htm