我想从http请求中删除Apache Web服务器信息。 我已经实现了ServerTokens Prod ,并且已经将信息简化为:
Server: Apache
现在,我想从请求中删除这些信息。 我怎样才能做到这一点?
Server不能未设置,对不起。 看到这里 。
如果你满足于只是改变string, mod_security可以做到这一点( SecServerSignature ),也可以在服务器之前做某种代理( SecServerSignature ,甚至是Apache代理)。
完全删除它当然可以完成..但我不知道我的头顶上的开箱即用的软件。
yum install mod_security
编辑文件/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
SecServerSignature“”将服务器:apache隐藏到服务器:
ref: http : //forums.cpanel.net/f5/disable-serversignature-off-not-working-78468.html