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文件關(guān)閉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文件關(guān)閉expose_php = On改成expose_php = Off