Origin pull protocol
In the Gcore Customer Portal, navigate to CDN > Resources and click the resource name. Open the OPTIONS tab and scroll to the General section. Use the Origin pull protocol option to set the protocol that CDN servers use to pull content from an origin server: HTTP, HTTPS, or HTTP and HTTPS.
- HTTP — if the content on the origin server is available only via HTTP (port 80) or there is a redirect from HTTPS to HTTP on the origin server.
- HTTPS — if the content on the origin server is available only via HTTPS (port 443) or there is a redirect from HTTP to HTTPS on the origin server.
- HTTP and HTTPS — if the content on the origin server is available via both HTTPS and HTTP. A CDN server uses the protocol that matches the client’s request:
- Files are cached for both protocols. There are two versions of the file in the cache: one for HTTP and one for HTTPS.
- When a user sends a request to
https://cdn.example.com/image.jpg, the CDN pulls from the origin through HTTPS (port 443). - When a user sends a request to
http://cdn.example.com/image.jpg, the CDN pulls from the origin through HTTP (port 80).
-
Origin redirects from HTTP to HTTPS
- A user requests content at
http://cdn.example.com/image.jpg. - The CDN pulls from the origin at
http://example.com/image.jpg. - The origin redirects to
https://example.com/image.jpg.
- A user requests content at
-
Origin does not redirect from HTTP to HTTPS
- A user requests content at
http://cdn.example.com/image.jpg. - The CDN pulls from the origin at
http://example.com/image.jpg.
https://example.com/image.jpg. Set the protocol to HTTPS to have content delivered through the CDN. - A user requests content at
Pull content from
Use the Pull content from section to specify the origin group that the CDN uses to pull content. The origin can be an IP address or a domain name. To change the current origin group, click Edit this group. To add a new origin group, click Add group. After the group is created, select it from the origin group dropdown — it is not assigned to the resource automatically.