nginx: 在配置文件nginx.conf的http段里加入
server_tokens off;
php: 把配置文件php.ini的
expose_php = On
修改为
expose_php = Off