我在我的AWS存储桶中有一个文件:https://s3.amazonaws.com/static.my-company.com/media/my-file.jpg
。如何将子域分配给我的AWS S3存储桶?
当前我在访问该文件我的index.html
文件www.my-company.com
。我有my-company.com
作为AWS Route 53中的托管区域。
但是在那index.html
中,我不希望它显而易见此资产位于AWS存储桶中。我希望它看起来好像它托管在我自己的域服务器上。因此,而不是https://s3.amazonaws.com/static.my-company.com/media/my-file.jpg
,我希望它被解决为https://static.my-company.com/media/my-file.jpg
。我怎样才能做到这一点?
我尝试在路线53中插入一条CNAME记录,指向static.my-company.com
至s3.amazonaws.com/static.my-company.com
。但那并不奏效。这就是Jay Godse推荐的here
正确,除了这不支持HTTPS和'us-east-1'将随着创建存储区的区域而变化。 [在控制台中]找到存储桶的正确端点(http://docs.aws.amazon.com/AmazonS3/latest/dev/HowDoIWebsiteConfiguration.html)。 –