Nginx: Custom server_token

 

 

  1. wget http://nginx.org/download/nginx-1.19.6.tar.gz

     

  2. 修改
    src/http/ngx_http_header_filter_module.c

     

     

    src/http/ngx_http_special_response.c

     

     

  3. nginx.conf
    http{
        server_tokens off;
    }

     

posted @ 2020-12-31 15:52  ascertain  阅读(1206)  评论(0)    收藏  举报