# 介绍

![Nginx](https://nginx.org/nginx.png)

## Nginx 中文文档

Nginx 官方文档中文翻译版，由本人在学习 nginx 时顺带翻译。因部分章节涉及到 Nginx Plus 或者其他内容，我将忽略该部分章节的内容。

> 文档前期翻译得比较粗糙，而且是基于旧版文档对照翻译，可能存在许多不当和错误之处，之后会慢慢修正和校对。

如果您发现内容存在错误或者不当之处，欢迎提出 issue 或 PR，期待您的加入：[如何贡献](/nginx-docs/contributing.md)。

在线阅读：[Github](https://github.com/DocsHome/nginx-docs/blob/master/SUMMARY.md) | [GitBook](https://www.gitbook.com/book/docshome/nginx-docs/details)

### 安装

如果你没有安装 gitbook，则先使用 npm（或者 cnpm）安装 `gitbook-cli`：

```bash
npm install gitbook-cli -g
```

进入项目根目录，执行以下命令运行 gitbook：

**安装依赖**

```bash
gitbook install
```

**启动本地服务器**

```bash
gitbook serve
```

**生成 HTML 文件，存放在 `_book` 目录下**

```
gitbook build
```

更多操作命令，请参照 GitBook 命令。

### 项目状态

翻译中……

### 排版规范

本项目排版遵循 [中文排版指南](https://github.com/mzlogin/chinese-copywriting-guidelines) 规范。

### LICENSE

![知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)

本作品采用[知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc-sa/4.0/)进行许可。


---

# 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/readme.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.
