amazon-web-services - 创建不使用亚马逊S3存储桶的亚马逊cloudfront发行版

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

我是亚马逊云前端的新手,正在学习它。我想创建 cloudfront 分发,但不使用 amazon S3 存储桶作为原始域名。

我想使用rails服务器作为源域名。

我在网上做了一些研究,但找不到任何例子

有什么想法吗?

最佳答案

是的,你可以!

只需创建一个新源并在源域名字段中输入适当的 URL。弹出帮助说明:

Click in the field and specify the domain name for your origin - the Amazon S3 bucket or web server from which you want CloudFront to get your web content. To use a resource from a different AWS account, type the domain name of the resource. The files in your origin must be publicly readable.

虽然该字段显示为 S3 存储桶和负载均衡器的下拉列表,但您也可以输入自定义域。

来自Using Amazon EC2 or Other Custom Origins :

A custom origin is an HTTP server, for example, a web server. The HTTP server can be an Amazon EC2 instance or an HTTP server that you manage privately. When you use a custom origin, you specify the DNS name of the server, along with the HTTP and HTTPS ports and the protocol that you want CloudFront to use when fetching objects from your origin.

关于amazon-web-services - 创建不使用亚马逊S3存储桶的亚马逊cloudfront发行版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40164417/

相关文章:

ruby-on-rails - AWS elasticsearch 服务抛出 Faraday::ConnectionFailed: 无法打开到 https:80 的 TCP 连接(getaddrinfo: 名称或服务未知)

javascript - 在Linux上部署后未能加载某些JS文件。在Windows上也一样

browser - 您可以创建符合HIPAA要求的Amazon S3 Web应用程序吗?

amazon-web-services - 使用 AWS CDK 配置具有 S3 源和自定义源 (ELB) 的 CloudFront 分发

amazon-web-services - 如何防止使用签名网址从亚马逊云端下载视频

amazon-web-services - ECS 和负载均衡器的 Terraform 第一次失败

amazon-web-services - 在 jar 中创建多个 Lambda 函数(Java)是否可行

java - 检查AWS作业的状态

amazon-web-services - 设置 AWS 进行数据处理 S3 或 EBS?

amazon-web-services - 为任何 Cloudfront 源访问身份添加 S3 存储桶策略