1、nginx隐藏版本信息(nginx.conf)
http { # ...省略一些配置 server_tokens off; }
2、PHP隐藏版本信息(php.ini)
expose_php = Off
修改后重启nginx及php-fpm