不使用 amazon S3 bucket 创建 amazon cloudfront distribution

create amazon cloudfront distribution not using amazon S3 bucket

我是 amazon 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.