All Products
Search
Document Center

Server Load Balancer:Add and manage additional domain names

Last Updated:Sep 28, 2023

This topic describes how to add and manage additional domain names.

Prerequisites

A Classic Load Balancer (CLB) instance is created and an HTTPS listener is configured for the instance. For more information, see Add an HTTPS listener.

Add an additional domain name

  1. Log on to the CLB console.
  2. On the Instances page, click the ID of the instance that you want to manage.

  3. On the Listener tab, find the HTTPS listener that you created and choose image.png > Manage Additional Certificate in the Actions column.

  4. In the Manage Additional Certificate panel, click Add Additional Certificate.

    1. Enter an additional domain name.

      Domain name-based forwarding rules support exact matching and wildcard matching.

      • You can specify a specific domain name such as www.aliyun.com in a forwarding rule.

      • You can also specify a wildcard domain name such as *.aliyun.com or *.market.aliyun.com in a forwarding rule.

        If a request matches multiple domain-based forwarding rules, exact matching prevails over wildcard matching. If multiple wildcard domain names are matched, a higher-level wildcard domain name prevails over a lower-level wildcard domain name.

        Note

        In the following table, "√" indicates that the domain name is matched and "×" indicates that the domain name is not matched.

        Mode

        Request URL

        Domain name-based forwarding rule

        www.aliyun.com

        *.aliyun.com

        *.market.aliyun.com

        Exact matching

        www.aliyun.com

        ×

        ×

        Wildcard matching

        market.aliyun.com

        ×

        ×

        Wildcard matching

        info.market.aliyun.com

        ×

        ×

    2. Select the server certificate associated with the domain name.

      Note
      • The domain name of the certificate must be the same as the additional domain name that you add.

      • If multiple wildcard domain certificates are added, only the first wildcard domain certificate can be matched.

    3. Click OK.

      After you add an additional domain name, you must create a forwarding rule based on the domain name for the domain name to take effect.

  5. Optional: Perform the following steps to configure a forwarding rule.

    1. On the Note page, click Configure Rule. You can also click the ID of the CLB instance on the Instances page and click Listener tab. Find the HTTPS listener that you created and click Set Forwarding Rule in the Actions column.

    2. In the Add Forwarding Rules panel, enter a domain name and click Add Forwarding Policy.

    For more information, see Forward requests based on domain names or URLs.

    Note

    Make sure that the domain name configured in the forwarding rule is the same as the additional domain name that you added.

Modify an additional domain name

You can replace the certificate that is used by an additional domain name.

  1. Log on to the CLB console.
  2. On the Instances page, click the ID of the CLB instance that you want to manage.

  3. Click the Listener tab, find the HTTPS listener that you created, and choose 更多 > Manage Additional Certificate in the Actions column.

  4. On the Manage Additional Certificate page, find the additional domain name that you want to manage and click Modify in the Actions column.

  5. In the Modify Additional Certificate dialog box, select a new certificate and click OK.

Delete an additional domain name

You can delete additional domain names that are no longer needed.

  1. Log on to the CLB console.
  2. On the Instances page, find the CLB instance that you want to manage and click its ID.

  3. Click the Listener tab, find the HTTPS listener that you created, and choose 更多 > Manage Additional Certificate in the Actions column.

  4. On the Manage Additional Certificate page, find the additional domain name that you want to delete and click Delete in the Actions column.

  5. In the message that appears, click OK.

References

CreateDomainExtension: creates an additional domain name.