我是亚马逊云前端的新手,正在学习它。我想创建 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/