Skip to main content

Custom domain

CloudBase HTTP access service provides an automatically generated domain by default. You can also bind your custom domain to the CloudBase HTTP access service.

Step 1: Adding Domain

Open the CloudBase console, navigate to the HTTP access service, click Add Domain to add a custom domain and configure the HTTPS certificate.

Tip

Custom domains require you to complete ICP filing in advance. We recommend using Tencent Cloud Website Filing.

Step 2: Domain Ownership Verification

To confirm that you indeed own the domain, you may choose any of the following methods to perform domain ownership verification:

  • Configure domain CName resolution record
  • Configure domain TXT resolution record
  • Configure specific subdomain TXT resolution record

Option 1: Configure domain CName resolution record

Configure the CName of your domain to the domain name provided on the CloudBase console.

For example, if your domain is foo.com, you can set its CName record to foo.com.cdn.dnsv1.com.

Option 2: Configure domain TXT resolution record

Set your domain's TXT resolution record to the corresponding CloudBase environment ID.

For example, if your domain is foo.com and the environment ID is bar-12345, you can set the TXT record for foo.com to bar-12345.

Option 3: Configure specific subdomain TXT resolution record

Set the TXT resolution record for the specific subdomain _cloudbase-challenge of your domain to the corresponding CloudBase environment ID.

For example, if your domain is foo.com and the environment ID is bar-12345, you can set the TXT record for _cloudbase-challenge.foo.com to bar-12345.

Step 3: Configure Domain CNAME

Configure the CNAME resolution record of your custom domain to the CNAME provided by the HTTP access service.

If your DNS service provider is Tencent Cloud, you can log in to the Domain Service console to add a CNAME record.

tip

There are priority differences among various record types in domain name resolution. When the host record is identical, different record types in the same line cannot coexist; otherwise, a conflict will be prompted. CNAME records conflict with all record types except other CNAME records. You must first delete other records before configuration. For details, see Why is "record conflict" prompted when adding a resolution record?.