笔记

作者: 吕志豪 | 来源:发表于2017-10-15 20:31 被阅读0次
  1. context http server_tokens off;关闭显示的nginx版本号 (error_message)错误返回信息,(response header)响应返回头
  2. 更改服务器名称
vi src/http/ngx_http_special_response.c
36 "<hr><center>new nginx</center>" CRLF
vi src/http/ngx_http_header_filter_module.c 
 49 static u_char ngx_http_server_string[] = "Server: nginx new" CRLF;

然后重新编译nginx

相关文章

网友评论

      本文标题:笔记

      本文链接:https://www.haomeiwen.com/subject/ycncuxtx.html