# proxy\_buffers

<mark style="color:blue;">**proxy\_buffers**</mark>指令用于<mark style="color:blue;">**配置接收一次被代理服务器响应数据的Proxy Buffer个数和每个Buffer的大小**</mark>，其语法结构为：

```nginx
proxy_buffers number size;
```

* <mark style="color:blue;">**number**</mark>，Proxy Buffer的个数。
* <mark style="color:blue;">**size**</mark>，每个Buffer的大小，<mark style="color:orange;">**一般设置为内存页的大小**</mark>。根据平台的不同，可能为4KB或者8KB。

由这个指令可以得到<mark style="color:blue;">**接收一次被代理服务器响应数据的Proxy Buffer总大小为number \* size**</mark>。该指令的默认设置为：

```nginx
proxy_buffers 8 4k|8k;
```


---

# 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://bohans.gitbook.io/devops/ngnix/ji-chu-zhi-shi/4.-nginx-fu-wu-qi-de-dai-li-fu-wu/4.3-nginx-fu-wu-qi-de-fan-xiang-dai-li-fu-wu/proxy-buffer-de-pei-zhi-de-7-ge-zhi-ling/proxy_buffers.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.
