Connect SFTP storage to CDN: create a CDN resource and request content from CDN

CDN Resource settings

Navigate to the CDN tab -> CDN Resources. Click on the Create CDN Resource button.

sftp_cdn_resource_eng.png

SFTP storage supports only HTTP protocol.

To specify the Origin Source, use the following schema: <storage name>.<hostname>. Both name and hostname can be found on the Storage tab -> Storages -> Details.

sftp_eng_detaions.png

Example

If your storage name is 4505-test and hostname — ams.origin.gcdn.co, then you should specify 4505-test.ams.origin.co as the Origin Source.

Ream more about personal domain setup in this article.

The Custom Host Header field is auto-filled. 

 

Request content from CDN

Upload your files to the htdocs directory, but don't specify the directory when requesting the content.

Example

Path to the uploaded file in the storage: 

sftp://4505-test@ams.origin.gcdn.co:2200/export/home/4505-test/htdocs/picture.png

CDN Custom Domain:

cdn.mycompany.com

URL to request the file from CDN:

http://cdn.mycompany.com/picture.png
Was this article helpful?
Recently viewed articles