Specify an origin SNI

更新时间:
复制 MD 格式

If your accelerated domain has multiple origin servers that each host a different domain, and the origin protocol is set to HTTPS, you can assign a distinct SNI value per origin server so that every HTTPS connection succeeds.

How it differs from the default origin SNI

Specified origin SNIDefault origin SNI
ScopePer origin serverAll origin servers
SNI valueDifferent value for each originSame value for all origins
PrecedenceTakes precedence when both are configuredApplies only when no specified SNI is set

Prerequisites

Before you begin, confirm that all three conditions apply to your domain:

  • The accelerated domain name is configured with multiple origin servers.

  • The origin protocol is set to HTTPS.

  • Each origin server hosts a different domain name for its web service.

Add an origin SNI entry

  1. Log on to the CDN console.

  2. In the left navigation pane, click Domain Names.

  3. Find the domain name and click Manage in the Actions column.

  4. On the Origin Fetch tab, find the Specify Origin SNI section and click Add.

    image

  5. Configure the following settings.

    Origin Address — Select the origin server for which you want to set a custom SNI value.

    SNI HOST — Choose the option that matches what your origin server requires:

    OptionSNI value sentUse when
    Follow Origin AddressSame as the origin server addressThe origin server address is a domain name, and the origin server requires the SNI to match the origin domain name
    Follow Origin HostSame as the origin host headerThe origin server requires the SNI to match the origin host
    CustomA value you specifyThe origin server requires the SNI to match a value that is not the origin domain name or the origin host

    Keep-Alive — Controls whether each SNI value gets its own persistent connection to the origin.

    OptionBehavior
    EnableEach SNI uses a separate persistent connection, preventing SNI conflicts on shared connections
    DisableAll requests to the origin share a single persistent connection with one SNI value
  6. Click OK.

See also