# ngx\_http\_flv\_module

* [示例配置](/nginx-docs/he-xin-gong-neng/http/ngx_http_flv_module.md#example_configuration)
* [指令](/nginx-docs/he-xin-gong-neng/http/ngx_http_flv_module.md#directives)
  * [flv](/nginx-docs/he-xin-gong-neng/http/ngx_http_flv_module.md#flv)

`ngx_http_flv_module` 模块为 Flash 视频（FLV）文件提供伪流服务端支持。

它通过发送回文件的内容来处理请求 URI 查询字符串中带有特定 `start` 参数的请求，文件的内容从请求字节偏移开始的且 FLV 头为前缀。

该模块不是默认构的，您可以在构建时使用 `--with-http_flv_module` 配置参数启用。

## 示例配置 <a href="#example_configuration" id="example_configuration"></a>

```
location ~ \.flv$ {
    flv;
}
```

## 指令 <a href="#directives" id="directives"></a>

### flv

|       - | 说明       |
| ------: | -------- |
|  **语法** | **flv**; |
|  **默认** | ——       |
| **上下文** | location |

开启针对 `location` 的模块处理。

## 原文档

<http://nginx.org/en/docs/http/ngx_http_flv_module.html>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docshome.gitbook.io/nginx-docs/he-xin-gong-neng/http/ngx_http_flv_module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
