加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > Nginx > 正文

nginx“server_tokens”配置被忽略

发布时间:2020-05-23 05:16:50 所属栏目:Nginx 来源:互联网
导读:nginx.conf:server_tokens off; 为什么会被忽略,标题仍然被发送:Server: nginx 不,其他配置文件不包含server_tokens配置.是的,我确实重启了所有的服务.最佳答案引用server_tokens指令the docs: Enables or disables emitting nginx version in

nginx.conf:

server_tokens off;

为什么会被忽略,标题仍然被发送:

Server: nginx

不,其他配置文件不包含server_tokens配置.

是的,我确实重启了所有的服务.

最佳答案 引用server_tokens指令the docs:

Enables or disables emitting nginx version in error messages and in the “Server” response header field.

根据该文档,因此不会阻止生成Server头,但只能防止添加确切的版本.如果要完全删除服务器头,可以使用the ngx_headers_more module.

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读