nginx:
在配置文件nginx.conf的http段里加入
server_tokens off;
HTTPD.CONF
TraceEnable Off
<Directory ~ "\.svn">
Order allow,deny
Deny from all
</Directory>
HTTPD_DEFAULT.CONF
ServerTokens Prod
ServerSignature Off
php.ini
expose_php=Off