从http请求中删除apache信息

Ank*_*kit 6 apache-2.2

我想从 http 请求中删除 Apache Web 服务器信息。我已经实施了ServerTokens Prod,这将信息减少到:

Server: Apache

现在,我也想从请求中删除这些信息。我怎样才能做到这一点?

api*_*s17 5

yum install mod_security
Run Code Online (Sandbox Code Playgroud)

编辑文件 /etc/httpd/conf.d/mod_security.conf

<IfModule mod_security2.c>
    # This is the ModSecurity Core Rules Set.
    SecServerSignature " " ## add this
    # Basic configuration goes in here
    Include modsecurity.d/*.conf
    Include modsecurity.d/base_rules/*.conf
Run Code Online (Sandbox Code Playgroud)

SecServerSignature " "会将 Server: apache 隐藏到 Server 中:

参考:http : //forums.cpanel.net/f5/disable-serversignature-off-not-working-78468.html


Sha*_*den 3

Server无法取消设置,抱歉。看这里

如果您满足于仅更改字符串,mod_security可以这样做 ( SecServerSignature),就像您的服务器前面的某种代理(相反,甚至是 Apache 代理)一样。

完全删除它当然是可以完成的..但我不知道我的脑海中有开箱即用的软件。