How to configure the origin protocol?

Users can configure the origin protocol or the communication protocol between the origin server to the CDN. 

Once configured, the CDN will follow the protocol to retrieve resources from the origin server and redirect HTTP requests to the assigned port 80 or HTTPS requests to port 443. 

To configure the origin protocol, navigate to ‘ Multi CDN’ > ‘Origin Protocol’.

This feature operates on the domain level. You need to set the target domain from the ‘ Operation level panel’.

Here, users can configure the Origin type and Origin port.

Origin type

To configure the origin type, users may choose Match view, HTTP, or HTTPS based on their business requirements.

  • Match view - When a client sends an HTTP or an HTTPS request, the assigned CDN redirects the request to the origin server over the protocol used by the client. Make sure that both port 443 and port 80 are open on the origin server, else, the CDN will fail to redirect client requests to the origin server.
  • HTTP - the assigned CDN redirects requests to the origin server only over HTTP. If you set the origin protocol to HTTP, port 80 will be used by default.
  • HTTPS - the assigned CDN redirects requests to the origin server only over HTTPS. If you set the origin protocol to HTTPS, port 443 will be used by default.

Finally, click the ‘Save’ button to save the settings.

Origin port

By default, port 80 is used for HTTP, and port 443 is used for HTTPS. Although users can also set custom ports for HTTP and HTTPS.

Moreover, users may also enable SNI by checking the ‘ Enable SNI’ checkbox.

Server Name Indication (SNI) allows an origin server (having a unique IP address) to provide the correct SSL certificate of the requested website, even if this server hosts multiple websites and multiple SSL certificates. 

Finally, click the ‘Save’ button to save the settings.