[英]Is it possible to map subdomain to a folder in S3 bucket?
我正在将说明内容从Google Cloud迁移到S3。 假设我们有static.example.com
。 当前,所有静态html都引用诸如static.example.com/project1/css/main.js
东西。 因此,在Google Cloud Storage中,我们具有这样的目录结构。
/
|--project1
|--index.html
|--project2
|--project3
我们希望将所有内容迁移到具有相同子域的S3。 但是,还有另一个团队希望使用相同的存储桶,因为我们将为static.example.com
购买SSL证书。 我想像的是新S3的结构。
/
|--team1
|--project1
|--index.html
|--project2
|--project3
|--team2
|--project1
但是,如果这样做,该project
必须将所有代码更新为static.example.com/team1/...
是否有可能映射static.example.com
到S3仅team1
文件夹? 然后我可以做static.team2.example.com
为到S3 team2
? 我意识到这可能是不可能的,因此请提出一些建议,以减轻这种麻烦。
是的,有可能-只需为S3上的两个团队使用不同的存储桶即可。 小组1将使用static.example.com,小组2将使用team2.static.example.com。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.