首页 > 解决方案 > Direct requests to a specific path based on the subdomain

问题描述

Assuming I have a static website hosted on S3 and want http://app.example.com to serve the contents of <s3-bucket>/app/index.html, is that possible?

标签: amazon-web-serviceshttpamazon-s3dnsrouting

解决方案


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

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


推荐阅读