简体   繁体   English

子域指向Amazon S3 Bucket

[英]Subdomain point to Amazon S3 Bucket

I am a little bit confused with subdomain point to S3 bucket. 我对子桶指向S3存储桶有点困惑。

I have domain called mydomain.com from NameCheap.com and my hosting server is Hostgater. 我在NameCheap.com上有一个名为mydomain.com的域名,我的托管服务器是Hostgater。

So my website is up and running. 所以我的网站启动并运行。

I have a lot of mp3 files. 我有很多mp3文件。 So I have created Amazon S3 bucket call media.mydomain.com 所以我创建了Amazon S3桶调用media.mydomain.com

So I got my static s3 website URL as follow. 所以我得到了我的静态s3网站URL如下。 http://media.mydomain.com.s3-website-ap-southeast-1.amazonaws.com/ http://media.mydomain.com.s3-website-ap-southeast-1.amazonaws.com/

I want to point this url to my subdomain, media.mydomain.com. 我想将此网址指向我的子域media.mydomain.com。

May I know how and where to point? 我可以知道如何以及在何处指出? NameCheap or Hostgator. NameCheap或Hostgator。

I have created subdomain in hostgator but it can only redirect to S3 URL 我在hostgator中创建了子域,但它只能重定向到S3 URL

Thanks, Alex 谢谢,亚历克斯

You can make a new DNS record in Namecheap for this task 您可以在Namecheap中为此任务创建新的DNS记录

In your Namecheap account, go to Manage your domain, then Advanced DNS , and Add new Record with CName type 在您的Namecheap帐户中,转到管理您的域,然后转到高级DNS ,并使用CName类型添加新记录

  • Host: Enter your subdomain media 主持人:输入您的子域media
  • Value: Enter media.mydomain.com.s3-website-ap-southeast-1.amazonaws.com. 价值:输入media.mydomain.com.s3-website-ap-southeast-1.amazonaws.com. (with a dot . at the end) (最后有一个点。)
  • TTL: Automatic TTL:自动

Save all changes and wait for about 1 hour for the new record to take effect. 保存所有更改并等待约1小时以使新记录生效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM