gpt4 book ai didi

mod-security - Mod 安全响应/请求正文大小?

转载 作者:行者123 更新时间:2023-12-04 17:53:15 28 4
gpt4 key购买 nike

如何在 Mod Security 中获取响应/请求正文的大小?

我不断收到此错误,例如:

[Mon Sep 17 23:34:38 2012] [error] [client 192.168.1.1] ModSecurity: Output filter: Response body too large (over limit of 1000, total not specified). [hostname "example.com"] [uri "/index.php"] [unique_id "asdf"]

它没有告诉我总数;我怎样才能算出总数?

最佳答案

看看 SecResponseBodyLimit docs :

SecResponseBodyLimit

Description: Configures the maximum response body size that will be accepted for buffering.

Syntax: SecResponseBodyLimit NUMBER_IN_BYTES

Example Usage: SecResponseBodyLimit 524228

Processing Phase: N/A

Scope: Any

Dependencies/Notes: Anything over this limit will be rejected with status code 500 Internal Server Error. This setting will not affect the responses with MIME types that are not marked for buffering. There is a hard limit of 1 GB.

By default this limit is configured to 512 KB:

# Buffer response bodies of up to 512 KB in length
SecResponseBodyLimit 524288


出于某种原因,您将其设置为“1000”和 /index.php的输出大于 1000 字节。

关于mod-security - Mod 安全响应/请求正文大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12470051/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com