tencent cloud


Step 3. Configuring a Domain Name

Last updated: 2023-06-29 17:45:02
  1. Log in to the CDN console, click Domain Management on the left sidebar to enter the domain name management page, and click Create a Distribution.

  2. Domain name configuration
    Configure your website as below:

    When you add a domain name for the first time, add a wildcard domain name, or add a domain name that is already added by another account, you must verify your ownership of the domain name, as shown in the preceding figure. If your DNS service provider is Tencent Cloud, you can configure a TXT record for the primary domain name based on the following figure and verify the domain name ownership. For more information, see Domain Name Ownership Verification.
  3. Origin configuration
    The origin server stores the resources of your website. When a client requests resources from a CDN node but the requested resources are not cached on the node, the node reads the origin server settings configured for the domain name, pulls the resources from the origin server, and caches the resources on the node. Therefore, it is important to correctly configure the origin server settings to ensure that CDN pulls the requested resources from the origin server.
    Configure the origin server settings based on the following example:

    Configuration Description
    Origin server type The origin server of your website is the server that maintains the stable business operation. If you own the server, select Customer Origin.
    Origin-pull Protocol If you select Customer Origin for Origin type, only HTTP origin-pull is supported and you can select only HTTP.
    If your origin server supports other origin-pull protocols, you can select a protocol as needed.
    Origin server address Enter the IP address of the origin server.
    • You can configure multiple origin server addresses, and then CDN will perform round-robin origin-pull.
    • You can also configure the port (0 - 65535) and weight (1 - 100), so that the origin server address is in the format of `origin server IP address:port:weight`. You can also leave the port unspecified, so that the origin server address is in the format of `origin server IP address::weight`. At present, the HTTPS protocol supports only port 443.
    • You can configure a domain name as the origin server, which must be different from the CDN acceleration domain name.
    Host • Definition: This configuration item refers to the domain name accessed on the origin server by a CDN node during origin-pull.
    • Differences between Origin address and Origin Domain: The IP address or domain name that is configured on the origin server allows a CDN node to find the corresponding origin server during origin-pull. If multiple websites run on the origin server, the value of Origin Domain specifies the website where the resources are stored.
    • Configuration instruction: If the resources can be obtained by using the acceleration domain name during origin-pull, you do not need to modify the value. If the resources can be obtained by using another domain name rather than the acceleration domain name during origin-pull, you need to enter the corresponding domain name.
  4. Click OK. Note that Tencent Cloud CDN allows you to use recommended configurations based on the acceleration type. For more information, see Configuring CDN from Scratch. If you do not want to set the recommended configurations at the moment, you can click Back to return to the domain name management list.

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support