nginx隐藏版本号
进入nginx配置文件的目录 配置http模块(找到有http模块的配置文件)
插入一行 server_tokens off; 如下 vim /etc/nginx/nginx.conf http { include /etc/nginx/mime.types; default_type application/octet-stream; server_tokens off; [root@nginx ~]# curl -I 127.0.0.1 HTTP/1.1 200 OK Server: nginx