隐藏Apache的服务器配置信息

>ServerTokens ProductOnly 和 ServerSignature Off 微调 Apache 的返回信息

http://windtear.net/archives/2005/05/30/000676.html

apache 的 httpd.conf 有两个配置可以控制是否显示服务器信息给用户
ServerTokens
ServerSignature

默认条件下会把apache版本 系统 模块都显示出来 (HTTP 返回头)
还有如果列举目录的话 会显示域名信息(文件列表正文)
(http://httpd.apache.org/docs/mod/core.html表明ServerSignature已经默认Off了)
如果不想要就可以调这两个参数

ServerTokens
ServerSignature

ServerSignature On|Off|EMail
ServerTokens Minimal|ProductOnly|OS|Full

ServerTokens Prod[uctOnly]
    Server sends (e.g.): Server: Apache
ServerTokens Min[imal]
    Server sends (e.g.): Server: Apache/1.3.0
ServerTokens OS
    Server sends (e.g.): Server: Apache/1.3.0 (Unix)
ServerTokens Full (or not specified)
    Server sends (e.g.): Server: Apache/1.3.0 (Unix) PHP/3.0 MyMod/1.2

 


作者: Cherami
原载: 隐藏Apache的服务器配置信息
版权所有。转载时必须以链接形式注明作者和原始出处及本声明。

日志评价

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (暂无评价) --点击星星直接投票
Loading ... Loading ...


相关日志

  • 暂时没有相关日志。


随机日志



添加到网摘

[del.icio.us]  [新浪 VIVI]  [365key]  [YouNote]  [博采中心]  [Poco]  [SOHU狐摘]  [天极网摘]  [和讯网摘]
喜欢这个插件?

当前日志信息