1.打开conf/nginx.conf配置文件;
2.在http下配置server_tokens项;
http {
server_tokens off;
}
3.隐藏X-Powered-By:PHP/7.3.0
在nginx配置文件添加:fastcgi_hide_header X-Powered-By;
在php.ini文件关闭expose_php = On改成expose_php = Off
1.打开conf/nginx.conf配置文件;
2.在http下配置server_tokens项;
http {
server_tokens off;
}
3.隐藏X-Powered-By:PHP/7.3.0
在nginx配置文件添加:fastcgi_hide_header X-Powered-By;
在php.ini文件关闭expose_php = On改成expose_php = Off