# HTTP状态管理(http\_stub\_status\_module)

## 配置语法

| http\_stub\_status\_module |                 |
| -------------------------- | --------------- |
| 语法                         | stub\_status    |
| 默认                         | ---             |
| 作用域                        | server,location |

### 例子:

```
   # 配置一个匹配规则，当访问当url是 /mystatus 就返回 stub_status
   location /mystatus {
       stub_status;
   }
   # 前台显示:
   # Active connections: 2 
   # server accepts handled requests
   # 9 9 40 
   # Reading: 0 Writing: 1 Waiting: 1
```


---

# 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://kingofzihua.gitbook.io/middleware-architecture-based-on-nginx/nginx-chang-yong-mo-kuai/http-zhuang-tai-guan-li-httpstubstatusmodule.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.
