http
{
..... server_tokens on;
server_info on;
server_tag bass; reset_timedout_connection on;
keepalive_timeout 120;
keepalive_requests 100; sendfile on;
tcp_nodelay on;
tcp_nopush off;
.....
}
当网页不存在时会显示如下图:
修改为:
server_tokens off;
server_info off;
server_tag off;
重新加载配置文件后看效果: