> For the complete documentation index, see [llms.txt](https://docshome.gitbook.io/nginx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docshome.gitbook.io/nginx-docs/he-xin-gong-neng/http/ngx_http_flv_module.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
