Skip to main content

Add additional content origins

Last update:

If you have multiple content origins, for example main and backup, you can add them to a CDN resource and set the weight for each.

If the origin with the highest weight is unavailable, the CDN server will start requesting content from the next origin by weight. If all main origins are unavailable, the CDN server will start requesting content from the backup origin.

As soon as the main origin becomes available again, the CDN server will automatically switch back to it.

  1. In the control panel, on the top menu, click Products and select CDN.

  2. In the CDN Resources section, open the CDN resource page → Origin.

  3. In the Domain field, specify the domain without a protocol and including the port, for example: example.com:443.

  4. In the Domain weight field, enter an integer. The higher the weight, the more requests the origin will receive. The default value is 1.

  5. In the Failure count field, specify the number of failed connection attempts to the content origin server after which the CDN will direct requests to the next origin by weight. The default value is 10.

  6. If the origin acts as a backup, check the Origin is a backup checkbox. A backup origin must contain the same files as the main one.

  7. If you need to add another origin, click Add origin and repeat steps 3–6.

  8. Click Apply. While settings are being applied, the CDN resource enters the PROCESSING status. You cannot apply other settings at this time. Settings take effect when the CDN resource transitions to ACTIVE.

  9. Ensure that the Host header configured in the CDN resource settings is allowed on the added origin. You can view the Host header specified for the CDN resource in the control panel: in the top menu, click ProductsCDN → CDN resource page → Origin.