To associate a customized domain, you need to understand the following concepts:
What's more, in accordance with the requirements of China's Internet Administration Regulations, if users need to enable this function, they must provide valid information such as ICP filing No. of Ministry of Industry and Information Technology and ID Card of domain holder, which can only be used after being approved by JD Cloud.
For example, when the users need to migrate the files from the website to OSS, and do not want to modify the code of the web page, i.e., keeping the website link unchanged, CNAME function is particularly suitable for such scenario. For example, the domain of user A is www.example.com, the file is abc.html, and the link is: http://www.example.com/abc.html.
The process is as follows:
Create a Bucket named example on OSS and upload it to abc.html website file to the storage space.
OSS console associates the customized domain www.example.com to the created storage space.
Add CNAME rules on the Domain Service server and map www.example.com to storage space domain.
After the request of http://www.example.com/abc.html arrives at OSS, OSS will find the mapping between www.example.com and storage space domain name (example.s3.cn-north-1.jdcloud-oss.com) and converts it into an abc.html file accessing the bucket. That is to say, the access to http://www.example.com/abc.html is actually access to http://example.s3.cn-north-1.jdcloud-oss.com/abc.html after being processed by OSS.
After OSS Bucket uploads the object, the address of the object is available, including two parts: OSS domain address + object file name. The OSS access domain format is as follows:
<BucketName>.<Endpoint>
Customized domain is available as access address to the storage file in OSS after the customized domain is associated successfully. For example, your storage space example is located in cn-north-1, the object file name is test.jpg, and the customized domain associated is hello-world.com, then the object access address is:
Log in the Console->OSS->Space Management->Enter into a Bucket->Space Setting, and click "Customized Domain".
Click the button Add Domain and open the page for associating user's domain, as shown in the following figure:
Description
Login JD Cloud DNS console and enter the domain resolution list page. Click the target domain or the right-handed resolution button to enter the domain resolution page. Add resolution, and then add the resolution page. Choose CNAME in the record type drop-down list; write the extranet domain name of corresponding storage space (i.e. Bucket domain name, e.g. BucketName.s3.cn-north-1.jdcloud-oss.com) in the record value box. Click Confirm, and the domain resolution is completed. For details, please refer to JD Cloud DNS-Add Resolution Record
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通