vod_redirect_segments_url

Defines the URL for redirecting video segments in NGINX-based VOD packaging.

Syntaxvod_redirect_segments_url URL;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The vod_redirect_segments_url directive specifies the URL from which video segment files will be redirected when serving video on demand (VOD) content. This is particularly useful when dealing with adaptive bitrate streaming, where segments of video need to be fetched from a different location than the main video file. When this directive is set, it alters the behavior of how segments are accessed and streamed, facilitating more efficient content delivery and potentially improving load times and user experience.

This directive can be configured within the http, server, or location context, making it flexible to implement at various levels of configuration. The directive accepts a single argument: the URL to which video segment requests should be redirected. For example, if your segments are stored on a specific domain or path, you would define this URL to ensure that requests for video segments are routed correctly. This can be beneficial in scenarios where segments are hosted on a CDN (Content Delivery Network) or different server for load balancing purposes.

By configuring vod_redirect_segments_url, network administrators and developers gain a powerful tool for optimizing their video delivery strategies, ensuring that users receive the best streaming experience possible by accessing segments from the most efficient sources.

Config Example

location /video {
    vod_redirect_segments_url https://segments.example.com;
}

Ensure that the redirect URL is accessible and correctly configured on the server.

Invalid URLs or incorrect formatting may lead to failed segment requests.

Redirection may introduce latency if the CDN or remote server has slow response times.

← Back to all directives