百度智能云

All Product Document

          CDN Abroad

          Access Domain Name

          Process to Connect a Domain Name

          Process to access the domain name: Log into the console and have identity authentication -> enable CDN -> add a domain name and connect it to CDN -> Bind CNAME.

          Log into the Console and Have Identity Authentication

          1. Log in the console:

            • If there is no user name, please complete registration first. Please refer to Account Registration for operation.
            • If there is a user name, please refer to Login for the log-in operation.
          2. After the successful login, select "Product Service>Content Delivery Network CDN", enter the page "Enable the Content Delivery Network CDN" or "CDN Domain Name Management" Interface.

            You have to perform identity authentication if you want to use CDN, and you only have to authenticate once for each account. You can not use the corresponding service until you pass the authentication.

          3. If real name authentication is not performed, you are required to click “security authentication” of the user name in the upper right corner of the console to enter the authentication page and click “real name authentication”. Please select “enterprise authentication” or “personal authentication” according to the actual situation.
          4. Click "Authenticate Now" to enter the "Identity Authentication" page. Users conduct “enterprise authentication” or “personal authentication” in accordance to their own conditions.

          Enable the Overseas CDN Service, and Enter the Console

          Service subscription

          Currently, CDN overseas version is only provided to the white list users, if you want to activate, please submit Ticket apply to enable the overseas CDN.

          Enter the console of overseas version

          For the users that have enabled the overseas CDN, enter the domestic CDN console, click "Switch to Overseas Version" to enter the CDN console of overseas version.

          image.png

          Access CDN

          Precondition

          • You have completed the identity authentication.

          Background information

          • The CDN service supports to access CDN acceleration through IP addresses and origin server domain names. Please select the configuration according to the actual condition.
          • After finishing the basic configuration access, please ensure your accelerated domain name DNS analysis points to the CNAME address to complete the last setting of CDN acceleration.
          • The postpaid products will be deducted in real time according to the actual use.

          Add a new domain name

          1. Click "Add a New Domain Name" and enter the page "Create Domain Name Acceleration".

            image.png

          2. Enter the domain name. The domain name is the one that you want to accelerate. This domain name must be filed, and you cannot connect domain names which are being filed or not filed. Select the type of origin server and enter the address of origin server.

            image.png

            Set the origin server

            The origin server type supports IP address or origin server domain name.

            • You can add 10 IP addresses at most. Separate multiple IP addresses by line breaks;
            • You cannot enter 1.1.1.1 as the origin server IP;
            • The address of the origin server can be the user's own server address, or the rented Cloud server address;
            • When origin server is “origin server domain name”, the origin server domain name cannot be the same as the accelerated domain name.

            Note If the origin server configuration of the accelerated domain name needs to be modified, you can select the “management” operation of the corresponding domain name on the “CDN domain name management” page to enter the page of domain name details, and click the “modify” on the right to complete the modification settings of the origin server.

          Activate domain names

          Domain name activation is to verify the attribution of the domain name, verifying whether the domain name belongs to the user.

          1.After a domain name is added, return to the domain name management list, and click the [Activate] button of the domain name.

          image.png

          2.Based on the operation prompt, establish a TXT record corresponding to domain name resolution, and the record name is the domain name itself, and the record value is the string provided.

          3.After the operation is completed, the domain name will take effect in 5 minutes.

          Note: TXT record is only used to verify the attribution of the domain name, and you can delete it after completing the verification.

          Domain Name Conflict

          Overview

          Domain Name Conflict Handling is an optimized mechanism of Baidu AI Cloud CDN to handle conflicts between accounts due to the addition of the same domain name.

          Under the processing mechanism of domain name conflicts, when the accelerated domain name you attempt to add conflicts with the existing domain name in the system record, Baidu AI Cloud CDN will determine the ownership of the account with domain name conflict finally by combining the use of existing domain name in the system record as well as DNS privilege authorization results of the domain name you attempt to add.

          If It is detected that some domain name in the system record is not in use, and you have the privilege to modify the domain name DNS, Baidu AI Cloud CDN will cancel the old domain name in the system record. When logging out, Baidu AI Cloud CDN informs the users owning old domain names through two forms, including sending internal messages and SMS.

          Processing steps

          1. On the page of "Add a New Domain Name", enter the new domain name in the "Basic Information">"Acceleration Domain Name" box;

            image.png

          2. When the domain name box turns red, it means the system detects a domain name conflict;
          3. Please complete the following operation according to system prompt:

            • Prompt “Submit ticket completion application”: You have to submit a detailed Ticket to the background, and we will return the processing result to you in time;
            • Prompt: “Add a domain name again ": Click the "Verification Methods" on the right, and verify according to the steps prompted by the system;
            • If the verification succeeds, the existing domain name with conflicts will be canceled, and you can add such "Acceleration Domain Name" on the page of "Add a New Domain Name";
            • If the verification fails, please check whether your domain name is filled in correctly.

          Cache expiration configuration

          Cache configuration refers to a set of expiration and elimination rules that CDN nodes follow when caching resources. CDN cached resources have a certain expiration time; before the resource expires, the node responds to the request received; when the resource expires, the node requests the origin server to re-cache and sends the resource to the user.

          The meaning of cache configuration parameter is as follows:

          • Cache configuration type: Specify which category this cache configuration belongs to;
          • Cache item/value: Specify which specific resources are applicable to the cache configuration.
          • Expiration time: Overdue time of resources on nodes;
          • Weighting: The priority of the rule, the rule with greater weight have higher priority and take effect sooner.

          Cache configuration type description:

          • Directory cache configuration For a directory-based cache configuration, for example, when the /test directory cache configuration is 100 seconds, all resource files under the user's domain name /test path expire on the node for 100 seconds.
          • Cache configuration for file suffix

            For the cache configuration with the file suffix name as reference for judging; for example, the cache configuration of the picture file jpg is set to 100 seconds, the jpg resource file expires at 100 seconds at the node.

          • Cache configuration of file name

            For a cache configuration with an accurate file name starting with /, for example, when the/test.jpg cache configuration is 100 seconds, the expiration time of this file on a node is 100s.

          • Two special cache configurations

            • All file cache configurations

            You can set to follow the cache rules of the origin server and set the expiration time of the cached resources according to the origin server’s response header.

            • Origin server cache rules

            The cache configurations of all the files can be set for the user to request randomly; if the current resource is unexpired, the node responses; if the current resource is expired, request the origin server caches and responses the request.

          Operation steps

          1. Fill in “cache expiration configuration” information.

            image.png

            Description:

            • When a user accesses a domain name, the console will configure the default cache automatically, and the user can edit the weight to adjust the priority for which the cache rules take effect. Cache contents include:

              • The global static files are cached for 30 days by default, with a weight of 2.
              • The cache time of the dynamic files, such as .php, .jsp, .asp and others, is 0 by default, with a weight of 3.
              • Cache control weight in the origin server HTTP Header is 1.
            • Weight represents the priority of cache rules, and the value range is 0-100. The higher the weight, the higher the priority, and the corresponding rule takes precedence. Rules with the same weight take effect randomly.
            • The cache setting of the CDN console is of higher priority than the setting of HTTP Header of the origin server. If you want the priority of the origin server to be higher than that of the console setting, you can modify the weight of the corresponding rule to achieve it.
          2. Click "Domain Name** to configure others according to actual needs on the domain name list page after adding.

          Add tag

          Users can add tags to domain name according to the needs of projects and scenarios, which facilitates the classification and identification management of the domain name.

          Click “Add Tag” to set the tag key and value.

          Bind CNAME

          CNAME records are alias records. This record allows you to map multiple names to the same computer. It is usually used for computers that provide both WWW and MAIL services. For example, there is a computer named "host.mydomain.com" (A record). It provides WWW and MAIL at the same time, and in order to facilitate the user's access to the service, two aliases (CNAME) can be set for the computer: WWW and MAIL. The full names of these two aliases are "www.mydomain.com" and "mail.mydomain.com". Actually they all point to "host.mydomain.com".

          Important: If you do not bind CNAME, you cannot use the cache service provided by CDN successfully. View the CNAME record corresponding to the domain name on the domain name details page.

          image.png

          1. Log into the management website of the domain name. If the domain name is applied in Baidu AI Cloud, you can log in the “Domain Name Service” on Baidu AI Cloud directly.
          2. Resolve the accelerated domain name to the CNAME record provided by CDN. For details, please see Domain Name Resolution.

          When the configurations take effect, all the requests of the domain name are transferred to the Baidu AI Cloud CDN node.

          View Domain Name Details

          Click the domain name to view, you can view the details of the domain name, including CNAME record, domain name origin server, domain name status, and other information.

          Previous
          Operational Guideline
          Next
          Overseas CDN Overview