nginx 修改默认server名称
主要涉及3个文件,nginx.h、ngx_http_header_filter_module.c和ngx_http_special_response.c
scr/core/nginx.conf
#define NGINX_VERSION "1.12.2"
#define NGINX_VER "nginx/" NGINX_VERSION
修改成
#define NGINX_VERSION "1.12.2"
#define NGINX_VER "quexing/" NGINX_VERSION
src/http/ngx_http_header_filter_module.c
static char ngx_http_server_string[] = "Server: nginx" CRLF;
修改成
static char ngx_http_server_string[] = "Server: quexing" CRLF;
src/http/ngx_http_special_response.c
static u_char ngx_http_error_tail[] =
"<hr><center>nginx</center>" CRLF
"</body>" CRLF
"</html>" CRLF
修改成
static u_char ngx_http_error_tail[] =
"<hr><center>quexing</center>" CRLF
"</body>" CRLF
"</html>" CRLF
相关推荐
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29