[英]How to point Amazon S3 bucket to test subdomain like images.develop.example.com
Currently I'm using Amazon S3 bucket for my website like images.example.com
.Today I also built a test subdomain for development purposes and it is served in develop.example.com
目前,我在我的网站(如
images.example.com
使用Amazon S3存储桶。今天,我还出于开发目的构建了一个测试子域,该子域在develop.example.com
Now I want to use Amazon S3 bucket like develop.images.example.com
or images.develop.example.com
(I don't know which of them is correct) 现在我想使用Amazon S3存储像
develop.images.example.com
或images.develop.example.com
(我不知道哪个是正确的)
Is it possible according to S3 restrictions? 是否可以根据S3限制进行操作?
Because Amazon says: You must have same bucket name with your subdomain. 因为Amazon说: 您的子域必须具有相同的存储桶名称。 So I was create a bucket like
images.example.com
所以我创建了一个像
images.example.com
这样的存储images.example.com
and my cname record is: images.example.com.s3-website.eu-west-2.amazonaws.com
而我的cname记录是:
images.example.com.s3-website.eu-west-2.amazonaws.com
My webserver is Apache and runs on Ubuntu 我的网络服务器是Apache,可以在Ubuntu上运行
How can reach to my images on my development subdomain? 如何在我的开发子域上访问我的图像?
Should I create a new cname record? 我应该创建一个新的cname记录吗?
Should I do something on my virtual host file? 我应该在虚拟主机文件上做什么吗?
or what? 要不然是啥?
To share static content from develop.images.example.com
: 要共享来自
develop.images.example.com
静态内容:
develop.images.example.com
develop.images.example.com
的Amazon S3存储桶 A
record for develop.images.example.com
with Alias=YES
and point it to your S3 bucket Alias=YES
为develop.images.example.com
创建Route 53 A
记录,并将其指向您的S3存储桶 This is the same process as you would have followed for images.example.com
. 这与处理
images.example.com
过程相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.