nginx 关闭版本号显示

nginx 关闭版本号前端显示

在nginx.conf 文件 http段中加入下面参数:

server_tokens off;     #关闭版本显示

 

分享