禁用 apache 服务器状态检查

Sar*_*h S 2 apache httpd.conf

在 apache access.log 中出现以下几行,因此我的响应时间指标受到影响。我如何从 access.log 中禁用/删除这些行?

127.0.0.1 - - [10/8/2017:08:38:22 +0000] “localhost.****.com” “GET /server-status?auto HTTP/1.1” 200 300 291 “-” “Ruby ”

Fra*_*ier 5

此功能来自名为 的标准模块status,因此您只需禁用该模块即可删除/server-status端点。

在基于 Debian 的服务器上,这意味着运行:

a2dismod status
Run Code Online (Sandbox Code Playgroud)

然后重新启动网络服务器:

apache2ctl configtest
systemctl restart apache2.service
Run Code Online (Sandbox Code Playgroud)