【nginx隐藏版本号server_tokens】教程文章相关的互联网学习教程文章

nginx隐藏版本号server_tokens

安全优化-隐藏版本号server_tokensSyntax: server_tokens on | off | build | string;Default: server_tokens on;Context: http, server, location在主配置文件nginx.conf、虚拟主机的配置文件中配置,选一个配置即可官方文档地址:http://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens在主配置文件nginx.conf加入[root@web01 conf]# cat /application/nginx/conf/nginx.conf worker_processes 2; error_lo...