When you first add a domain name to ApsaraVideo VOD, you must verify ownership to prevent unauthorized use. Once verified, you can add the same domain or its subdomains without re-verifying.
Access the verification page
-
Log in to the ApsaraVideo VOD console.
-
In the left-side navigation pane, choose Configuration Management > CDN Configuration > Domain Management.
-
Click Add Domain Name.
-
Configure the domain name settings and click Submit. You are redirected to the verification page.
ApsaraVideo VOD supports DNS record verification and file verification. Complete either method to add the accelerated domain name.
Method 1: DNS record verification (Recommended)
This section uses example.com as an example.
-
On the verification page, click Method 1: DNS Record Verification.
The system generates the Record Type, Host Record, and Record Value. Keep this page open until verification is complete.
NoteTo add a domain via the AddVodDomain API, call DescribeVodVerifyContent to get the record value, add a TXT record as described below, and call AddVodDomain.
The generated TXT record uses verification as the host record and a unique string as the value. Add this record at your DNS provider, return to the verification page, select Configured, and click Verify.
-
At your DNS provider, add a TXT record.
The following steps use Alibaba Cloud DNS as an example. Other DNS providers follow a similar process.
-
Log in to the Alibaba Cloud DNS console.
-
On the Domain Name Resolution page, find the
example.comdomain and click DNS Settings in the Actions column. -
Click Add Record.
-
Enter the Record Type, Host Record, and Record Value from Step 1 and click OK.
-
-
Wait for the TXT record to take effect, then return to the ApsaraVideo VOD console and click Verify.
If verification fails, check that the TXT record is correct. Wait for DNS propagation, then try again.
Method 2: File verification
This section uses example.com as an example.
-
On the verification page, click Method 2: File Verification.
Keep this page open. Download verification.html, upload it to your origin server's root directory, ensure it is publicly accessible, and click Verify.
-
Click verification.html to download the file.
NoteThe verification.html file contains a string from the DescribeVodVerifyContent API. To add a domain via the AddVodDomain API, call DescribeVodVerifyContent to get this string, create a
verification.htmlfile with the string, upload it as described in the next step, and call AddVodDomain. -
Upload the verification file to the root directory of your domain's origin server, such as an ECS, OSS, CVM, COS, or EC2 instance.
The CDN system verifies ownership by accessing
http://example.com/verification.htmlon your origin server. Ensure the file is publicly accessible. -
Click Verify.
FAQ
-
Q: Why is domain ownership verification required?
A: To ensure a domain is added only by its owner, preventing security risks and domain conflicts from unauthorized use.
-
Q: I have multiple Alibaba Cloud accounts. Do I need to verify ownership for each account when adding a new domain for the first time?
A: Yes. Each Alibaba Cloud account is independent, so ownership verification is required per account.
-
Q: After DNS or file verification, can I delete the record or file?
A: Yes. The record or file is only needed for initial verification and can be removed afterward.
-
Q: Is verification required for domains already added to Alibaba Cloud CDN?
A: No. If you have already added
demo.aliyundoc.comand its CNAME is working, the system considers you the owner ofaliyundoc.com. You can add other subdomains such asexample.aliyundoc.comorvideo.aliyundoc.comwithout re-verifying. -
Q: Is verification required when adding a domain with the AddVodDomain API?
A: Yes. Configure the DNS record or place the verification file on your origin server before calling the AddVodDomain API.
-
Q: What should I do if I cannot complete DNS or file verification?
A: Submit a ticket, explain why you cannot complete verification, and provide documents proving your domain ownership for manual review.
-
Q: Can I use an OSS domain name as a custom domain name?
A: No. OSS domain names cannot be used as custom domain names. Purchase one on the Buy a Domain Name page.
Related APIs
-
VerifyVodDomainOwner: Verify domain name ownership via DNS.
-
DescribeVodVerifyContent: Retrieve the verification string for DNS or file verification.