Updated on 2024-01-26 GMT+08:00

Copying Domain Configuration to New Domains

You can add new domain names to CDN and copy the configuration of an existing domain name to these names.

Scenarios

You can copy the configuration of an existing domain name to one or more new domain names, allowing you to quickly add and customize domain names.

Precautions

  • You can copy the configuration of a domain name in the Enabled, Disabled, or Rejected state.
  • If a domain name is in the Deleting, Configuring, Reviewing, Error state, its configuration cannot be copied.
  • The configuration of a banned domain name cannot be copied.
  • You can add up to 10 domain names at a time. New domain names occupy your domain quota.
  • Some configuration items can be copied. For details, see Configuration Items That Can Be Copied.
  • Special configuration items set in the backend cannot be copied. If the source domain name has such items, new domain names cannot be added.
  • The domain name status cannot be copied.
  • An HTTPS certificate is bound to a domain name. The binding relationship cannot be copied.
  • After the copy, you can check whether each configuration item of the new domain names matches your services to prevent services from being affected by improper configuration.

Procedure

  1. Log in to Huawei Cloud console. Choose Service List > Content Delivery & Edge Computing > Content Delivery Network.

    The CDN console is displayed.

  2. In the navigation pane, choose Domains.
  3. On the Domains page, click More > Copy Configuration in the Operation column of the row containing the source domain name. On the displayed page, click the To New Domains tab.
    Figure 1 Copying configurations to new domain names
  4. Enter the domain names to be added and click Copy.
    • The copy operation cannot be paused. You can modify the configuration items after the copy is complete.
  5. In the displayed dialog box, click OK to copy the configuration.
  6. View the copy progress and results of adding domain names.
    Figure 2 Results of adding domain names

Configuration Items That Can Be Copied

The following table lists the configuration items that can be copied.

  • The configuration items in the following table are visible on the console. If you have asked the O&M personnel to configure special configuration for the source domain name, the special configuration cannot be copied to new domain names. You can submit a service ticket to configure special configuration for new domain names.
Table 1 Supported configuration items

Category

Item

Basic settings

Enterprise project (If you log in as an IAM user and do not have the permission to access the enterprise project, domain names cannot be added.)

Service type

Service area

Origin server settings

  • The host is also copied. The rules are as follows:
    • If the origin server of the source domain name is an IP address or domain name and a custom host is set, new domain names use this custom host.
    • If the origin server of the source domain name is an IP address or domain name and the host is the source domain name, new domain names use themselves as the host.
    • If the origin server of the source domain name is an OBS bucket, new domain names use the same host as the source domain name.

IPv6 settings

Origin settings

Origin protocol

Origin SNI

Origin URL rewriting

Advanced origins

Range requests

Redirect from origin

ETag verification

Origin response timeout

Origin request header

Cache settings

Cache rules

Browser cache TTL

Status code cache TTL

Access URL rewrite

Access control

Referer validation

IP ACL

User-Agent ACL

Token authentication

Remote authentication

Advanced settings

HTTP header settings (cross-origin requests)

Custom error pages

Smart compression

Request rate limiting

Usage capping

WebSocket settings (copied when the service type of the source domain name is whole site acceleration)

Video settings

Video seek settings

Tag settings

Tags