On this page
Apache 模块 mod_dumpio
Description: | 根据需要将所有 I/O 转储到错误日志中。 |
---|---|
Status: | Extension |
Module Identifier: | dumpio_module |
Source File: | mod_dumpio.c |
Summary
mod_dumpio
允许记录 Apache 接收的所有 Importing 和/或 Apache 发送的所有输出,并将它们记录(转储)到 error.log 文件中。
数据记录在 SSL 解码之后(用于 Importing)和 SSL 编码之前(用于输出)完成。可以预料,这会产生大量数据,仅应在调试问题时使用。
启用 dumpio 支持
要启用该模块,应将其编译并加载到正在运行的 Apache 配置中。然后可以通过以下指令分别为 Importing 和输出启用或禁用日志记录。此外,mod_dumpio需要配置为LogLevel trace7
:
LogLevel dumpio:trace7
DumpIOInput Directive
Description: | 将所有 Importing 数据转储到错误日志 |
---|---|
Syntax: | DumpIOInput On|Off |
Default: | DumpIOInput Off |
Context: | server config |
Status: | Extension |
Module: | mod_dumpio |
Compatibility: | DumpIOInput 仅在 Apache 2.1.3 和更高版本中可用。 |
启用转储所有 Importing。
Example
DumpIOInput On
DumpIOOutput Directive
Description: | 将所有输出数据转储到错误日志 |
---|---|
Syntax: | DumpIOOutput On|Off |
Default: | DumpIOOutput Off |
Context: | server config |
Status: | Extension |
Module: | mod_dumpio |
Compatibility: | DumpIOOutput 仅在 Apache 2.1.3 和更高版本中可用。 |
启用所有输出的转储。
Example
DumpIOOutput On