隐藏Nginx的版本号

在配置文件中,http区段中插入“server_tokens  off;”,重新载入配置文件:


http {

    server_tokens  off;
    
}