Nginx ngx_http_flv_module模块基本指令整理

原创文章,转载请指明出处并保留原文url地址

本文主要针对nginx的ngx_http_flv_module模块做简单介绍,本文具体包括如下指令:

Flv

ngx_http_flv_module模块针对flv文件提供一种server端的伪流支持。

这个模块处理来自用户的相关flv请求的特定查询字符串,通过发送请求中从偏移量开始的后面的相关数据给客户端, 并且在数据前面填写相关flv请求。

这个模块不是内建模块,听应该被通过--with-http_flv_module配置开关打开编译选项。

配置例子:

location ~ \.flv$ {

flv;

}

Nginx原文:

The module ngx_http_flv_module provides pseudo-streaming server-side support for Flash Video (FLV) files.

It handles requests with the start argument in the request URI’s query string specially, by sending back the contents of a file starting from the requested byte offset, and with the FLV header prepended.

This module is not built by default, it should be enabled with the --with-http_flv_module configuration parameter.

Example Configuration

location ~ \.flv$ {

flv;

}

1. flv

syntax:flv;
default:
context:location

在当前location里使用这个模块处理请求。

Nginx原文:

Turns on module processing in a surrounding location.

发表评论