HTTP/HTTPS Back to Origin

Last update:2026-05-08 16:36:56

The Origin Protocol feature gives you flexibility in how your origin communicates with our CDN servers. By default, the CDN will follow the protocol used in the original client request (HTTP or HTTPS). However, Origin Protocol allows you to override this default behavior for enhanced security and efficiency.

How to Configure Origin Request Protocol

  1. Log in to the CDNetworks Console and select the appropriate product.
  2. Navigate to the Configuration, locate the domain you wish to configure, and click Edit Configuration on the top or Edit to the right of the domain 云安全产品维护公告.
  3. On the Edit Configuration page, locate Origin Settings - Origin Protocol, and then click the Modify button.
  4. Select your desired protocol rewriting option and customize the back-origin port as needed.

Parameter Description

Parameter Description Details
Origin Protocol Options include Follow Client, Force HTTPS, and Force HTTP - Follow Client: Adheres to the end-user’s original request protocol by default. If the end-user redirect protocol rewrite has been configured under Page Rules - Redirects - URL Rewrite, the CDN back-to-origin traffic will comply with the client request protocol as specified by this configuration.
- Force HTTPS: Engages the HTTPS protocol for secure connections to the origin server.
- Force HTTP: Utilizes the HTTP protocol for connections to the origin server.
Port (For Rewrites Only) Designates the port number for CDN back-to-origin traffic - Default ports are 80 (HTTP) and 443 (HTTPS). You can customize ports as needed.
- The back-to-origin port setting is only applicable to requests matching the rewrite rule. Requests not meeting the rule will default to the port specified in Origin Settings - Host Header and Port settings.
- For instance, configuring Force HTTPS with a specified back-to-origin port of 443 means all HTTP requests will revert to the origin using port 443, while HTTPS requests will revert using the port set in Origin Settings - Host Header and Port.

Notes

  • When configuring the back-to-origin protocol rewrite and port, it’s strongly recommended to keep your Origin Protocol port settings consistent with your ports configured in Host Header and Port to avoid causing back-to-origin anomalies.

  • Should there be a need for different back-to-origin port configurations, it is crucial to reach out to our technical support for comprehensive testing and professional guidance prior to implementation. This approach ensures a stable and efficient CDN operation, aligning with industry best practices.

Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!