Centos 6.9 关闭http,Nginx版本信息

http隐藏版本信息
vi /etc/httpd/conf/httpd.conf

44 ServerTokens Prod

536 ServerSignature Off

重启http
service httpd restart

=========================================================
Nginx隐藏版本信息
vi /usr/local/nginx/conf/nginx.conf

http {
    include       mime.types;
    server_tokens off;         #关闭版本显示
      }

重启nginx
service nginx restart

你可能感兴趣的:(Centos 6.9 关闭http,Nginx版本信息)