You can configure a third-party origin server for your domain in VOD to pull media files from the origin server and distribute the media via VOD. This multi-cloud media distribution solution is enabled by VOD’s CDN capability. This document shows you how to configure and use an origin server with VOD.
Self-owned servers
If you want to use your existing server as the origin server to distribute media files stored in it via VOD, configure as follows:
Item | Description |
---|---|
Origin server type | Select Self-owned server |
Protocol | Select the protocol, which can be HTTP, HTTPS, or “Same as request”. |
Origin server address | You can enter multiple IP addresses (separate with commas) or one domain. |
Host | For self-owned origin servers, you can specify the host of a domain or IP address that VOD pulls from. If you do not specify it, VOD will pull from the current domain. |
Third-party storageNote
- You cannot use your VOD default domain as the origin server address.
- If you select Same as request, HTTP will be used for HTTP requests, and HTTPS will be used for HTTPS requests (your origin server must support HTTPS).
- You can use a domain as the origin server address, but this domain cannot be the same as the domain you use for acceleration.
Item | Description |
---|---|
Origin server type | Select Third-party storage |
Third-party storage | Currently, Alibaba Cloud OSS and AWS S3 are supported. |
Protocol | HTTP or HTTPS |
Origin server address | Enter a valid bucket address (cannot contain “http://” or http:// headers). |
After you add a custom domain in VOD, you need to add a CNAME record for it at your DNS provider before users can access your media files via the domain. For detailed directions, see Configuring CNAME.
After completing the above steps, you will be able to distribute media files to end users from a self-owned server or third-party storage service via VOD’s CDN. The process is as follows:
test.com
), when an end user opens the address of a media file under the domain (for example http://www.test.com/test.mp4
) in a browser, a request will be sent to the local DNS resolver.www.test.com.cdn.dnsv1.com
) has been added for the domain, the request will be referred to Tencent’s proprietary load balancing system Global Server Load Balance (GSLB).http://www.test.com/test.mp4
.test.mp4
file has been cached in the CDN node, the file will be returned to the user. If not, the node will request the file from the origin server you configured, cache the file, and return it to the user.Note:Using VOD’s origin server feature to distribute media files will incur playback traffic costs and origin server traffic costs. Playback traffic costs are charged by VOD. For details, see Daily Pay-As-You-Go and Prepaid Packages. Origin server traffic costs are charged by your origin server.
Was this page helpful?