Adding Domain Names

Last updated: 2020-10-26 09:47:15

    After activating CDN, you can log in to the CDN Console and select Domain Management on the left sidebar. Click Create a Distribution to add an acceleration domain. After the domain is added, its configuration will be distributed to the CDN cache nodes across the entire network without directly affecting your business in the production environment. To activate acceleration, you need to configure a CNAME record. For specific directions, please see CNAME Configuration.

    Creating a Distribution

    Access the domain name management page and click Create a Distribution.

    The distribution creation page consists of three parts:

    • Domain configuration
    • Origin configuration
    • Service configurations

    Based on your selected domain and origin configurations, CDN will recommend service configuration, which can be submitted without modification.

    Part 1. Domain configuration

    Enter your business domain name in the domain name field and select the project, region, and service type:

    Configuration description:

    Configuration Description
    Domain 1. The domain name can contain up to 50 characters.
    2. The domain name should have obtained an ICP filing from the MIIT.
    3. Subdomain names in the format of or and wildcard domain names in the format of \* or \* are supported.
    4. If the domain name is a wildcard domain or has been configured by another user, you need to complete ownership verification to access or retrieve it.

    1. After a wildcard domain name is configured, its subdomain names and second-level wildcard domain names cannot be configured under another account.
    2. Domain names in the format of * and *` cannot be configured at the same time.
    Project Project is a set of resources shared by all Tencent Cloud products. You can manage it on the project management page.
    Region Mainland China: access requests of global users will be scheduled to cache nodes in mainland China for acceleration.
    Overseas: access requests of global users will be scheduled to cache nodes outside mainland China for acceleration.
    Global: access requests of global users will be scheduled to the nearest optimal node for acceleration.

    Acceleration service in and outside mainland China are billed separately. For more information on billing policies, please see here.
    Service type CDN optimizes acceleration performance based on service type.
    For the best acceleration result, we recommend you select the service type similar to that of your actual business.

    Static acceleration: suitable for small-scale resource acceleration scenarios such as ecommerce, websites, and game images.
    Download acceleration: suitable for download scenarios such as game installation, source audio/video file download, and mobile phone firmware distribution.
    Streaming VOD acceleration: suitable for scenarios such as online education and VOD.
    Tag Up to 50 tags can be added.
    Only existing tags are supported.
    The tag key and value are required when you add a tag. You can add or modify tags in Tag List.
    Internet protocol IPv4: nodes can be accessed only through IPv4 addresses.
    IPv4+IPv6: nodes can be accessed through both IPv4 and IPv6 addresses. Only when this option is selected can an IPv6 origin server be configured.

    IPv6 is only supported in mainland China.

    Part 2. Origin configuration

    Configure business origin server information. If the CDN node has no resource cache, the node will pull the resource from the origin server and cache it.

    Configuration description:

    Configuration Description
    Origin type External: select this if you already have your own business server. (i.e., origin server).
    COS origin: if resources are stored in COS, the bucket can be directly selected as the origin server.
    Origin Address External origin server:
    1. Multiple IPs can be configured as the origin server, which will be polled during origin-pull.
    2. You can configure port (0 - 65535) and weight (1 -100) in the format of origin server:port:weight. The port can be omitted and the format becomes origin server::weight. HTTPS protocol currently only supports port 443.
    3. You can configure a domain name as the origin server, which should be different from the business acceleration domain name.
    Origin-pull protocol This can be selected based on the protocols supported by the origin server:
    HTTP: HTTP/HTTPS access requests use HTTP origin-pull.
    HTTPS: HTTP/HTTPS access requests use HTTPS origin-pull (the origin server must support HTTPS access).
    Follow protocol: HTTP access requests use HTTP origin-pull, while HTTPS access requests use HTTPS origin-pull (the origin server must support HTTPS access).
    Origin domain This refers to the site domain name accessed on the origin server by a CDN node during origin-pull.
    If a subdomain name is configured, it will be the same as the acceleration domain name by default and can be customized.
    If a wildcard domain name is configured, it will be the actual access subdomain name by default and can be customized.

    Part 3. Service configuration

    Configure the node acceleration service:

    Configuration description:

    Configuration Description
    Basic configuration A node caches resources by following the Key-Value mapping, where Key is the resource URL.
    If "Ignore Query String" is enabled, parameters after "?" in the URL will be ignored before mapping.
    Otherwise, Key will be a complete resource URL.
    By default, this feature is enabled for download and streaming VOD acceleration, but not for static acceleration.
    Enable Range GETs This specifies whether to process partial requests during origin-pull. It can be enabled only if the origin server supports Range GETs.
    This feature is enabled for COS origin server by default.
    Cache configuration This specifies the expiration period of the node cache, which is 30 days for all files by default.
    The configured expiration period is an estimate. The actual expiration period may be shorter depending on the available storage capacity of the node.

    Completing the Configuration

    Click Submit to add the domain name and wait for the domain name configuration to be distributed across the entire network. This will take about 5–10 minutes.

    Subsequent Steps

    When the distribution is completed, CDN will allocate a corresponding CNAME address to you, which needs to be configured before taking effect. For detailed directions, please see CNAME Configuration.

    Domain Ownership Verification

    If the domain name is a wildcard one or has been connected to by another user, you need to verify ownership before accessing or retrieving it. DNS verification is used. The verification steps are as follows:

    1. Click Verification Method to get the resolution record information to be added for DNS verification. Do not close this page before verification is completed.
    2. Go to your DNS service provider, add a TXT record and enter _cdnauth as its host record and the record value randomly generated on the "Verification Method" page as its record value.
    3. Wait for TXT resolution to take effect and click Verify. If "Verification failed" is displayed, wait for the DNS record to take effect before trying again and check whether the TXT record has been entered correctly.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback