是否可以为 S3 存储桶文件夹分配一个唯一的域名 - 不是整个存储桶而是存储桶中的一个文件夹?
例如,如果我有一个存储桶 s3.amazonaws.com/my.domain.tv 和该存储桶中的一个文件夹 Vasilis/,我想将域名 vasilis.domain.tv 指向 s3.amazonaws.com/my。域名.tv/Vasilis.
我找到了如何对整个存储桶执行此操作,但找不到文件夹的任何内容。
此外,我可以使用 cloudfront 来做到这一点,即为存储桶中的特定文件夹创建分发吗?
最佳答案
您可以为特定文件夹创建一个分发版,刚刚在 12 月中旬宣布:
Amazon CloudFront Now Allows Directory Path as Origin Name- Date: December 16, 2014
Details: When you specify the origin for a CloudFront distribution - the Amazon S3 bucket or the custom origin where you store the original version of content - you can now specify a directory path in addition to a domain name. This makes it easier for you to deliver different types of content via CloudFront without changing your origin infrastructure. Learn more by reading our announcement.
关于amazon-web-services - S3 存储桶文件夹的 DNS 名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27782562/