1,基本安全优化
1,1 隐藏版本号
server_tokens off;
2.修改软件名字
cd nginx-1.13.0/src/core
vim nginx.h

cd ../http
vim ngx_http_header_filter_module.c

vim ngx_http_special_response.c

重新编译nginx
3.更改默认用户
user nginx ;
1,基本安全优化
1,1 隐藏版本号
server_tokens off;
2.修改软件名字
cd nginx-1.13.0/src/core
vim nginx.h

cd ../http
vim ngx_http_header_filter_module.c

vim ngx_http_special_response.c

重新编译nginx
3.更改默认用户
user nginx ;
7266
2537

被折叠的 条评论
为什么被折叠?