Home

zhangyiqun

Thoughts, stories and ideas.

Notes Blog Archives About
27 Jun 2010

Apache错误信息隐藏

配置

ServerTokens ProductOnly

ServerSignature Off

在debian系的linux中配置文件太过分散,修改的时候注意要改对地方,否则将没有任何效果。

参数详情

ServerTokens Setting Server Banner Header
ProductOnly Server: Apache
Major Server: Apache/2
Minor Server: Apache/2.0
Minimal Server: Apache/2.0.55
OS Server: Apache/2.0.55 (Debian)
Full (or not specified) default Server: Apache/2.0.55 (Debian) PHP/5.1.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8b

扩展阅读:

http://nohn.net/blog/view/id/removing_apache_server_header

http://mediakey.dk/~cc/block-referer-spam/

Notes Blog Archives About