amazon-web-services - S3 存储桶文件夹的 DNS 名称

标签 amazon-web-services amazon-s3 amazon-cloudfront amazon-route53

是否可以为 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.

https://aws.amazon.com/about-aws/whats-new/2014/12/16/amazon-cloudfront-now-allows-directory-path-as-origin-name/

关于amazon-web-services - S3 存储桶文件夹的 DNS 名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27782562/

相关文章:

amazon-web-services - AWS CloudFront 与 Youtube - 在网页上加载视频的更快方法是什么?

amazon-web-services - AWS S3 CLI 分段上传

amazon-web-services - 使云端控制台文件夹中的所有文件无效

amazon-web-services - 错误 !!! CloudFormation 模板验证

amazon-web-services - 通过 SQS 向 Elastic Beanstalk 工作线程环境发布消息

c# - 如何使用无服务器和 DynamoDBContext 在 dynamodb 中动态设置表名?

ruby-on-rails - Rails send_data 以字节形式流式传输 PDF,除非路由直接访问

scala - Spark : save and load machine learning model on s3

amazon-web-services - AWS CloudFront 如何检测移动设备

node.js - 在 Amazon S3 上保存图像并使用 CloudFront 分发图像的最佳方式