1 关闭nginx_token
http{
server_tokens off;
}
2 编辑php-fpm配置文件fastcgi.conf 和 fastcgi_params. (去掉版本号信息)
vi conf/fastcgi.conf
astcgi_param SERVER_SOFTWARE nginx;
vi conf/fastcgi_param
fastcgi_param SERVER_SOFTWARE nginx;
3 重新加载Nginx配置
./sbin/nginx -s reload