简体   繁体   English

在 Amazon S3 存储桶上使用 SSL 和 CNAME

[英]Using SSL on Amazon S3 bucket with CNAME

So currently I have a CNAME mapped to my Amazon S3 bucket so that I can access my files like subdomain.domain.com/file.js所以目前我有一个 CNAME 映射到我的 Amazon S3 存储桶,以便我可以访问我的文件,如 subdomain.domain.com/file.js

The problem is SSL doesn't work on this.问题是 SSL 对此不起作用。

Now I could add Cloudfront, however, that creates a cache for the files and the files need to update dynamically.但是,现在我可以添加 Cloudfront,它会为文件创建缓存,并且文件需要动态更新。

How do I go about doing this?我该怎么做?

CloudFront is a complementary service to S3, and is the only way AWS provides to combine a custom domain name and SSL with an S3 bucket. CloudFront 是 S3 的补充服务,也是 AWS 提供的将自定义域名和 SSL 与 S3 存储桶相结合的唯一方式。

If you really don't want CloudFront to cache any content, you can set the Minimum, Default, and Maximum TTL to 0.如果您真的不希望 CloudFront 缓存任何内容,您可以将最小、默认和最大 TTL 设置为 0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM