简体   繁体   English

如何在HTTP响应标题中更改服务器名称?

[英]How to change Server Name in HTTP Response Header?

Is it possible to change your server name in HTTP Response Headers from nginx to something else. 是否可以将HTTP响应标头中的服务器名称从nginx更改为其他名称。 I want to do it to confuse prying eyes and enhanced security. 我想这样做是为了混淆视线并增强安全性。

You will need to go into the core code, find where this is, change this and recompile Nginx. 您将需要进入核心代码,找到它的位置,进行更改,然后重新编译Nginx。

Not worth the trouble really. 真的不值得麻烦。

There is the server tokens directive that will hide the version number. 有服务器令牌指令将隐藏版本号。 http://wiki.nginx.org/HttpCoreModule#server_tokens . http://wiki.nginx.org/HttpCoreModule#server_tokens

Not much use in terms of security either really but at least not so much trouble to achieve. 实际上,在安全性方面使用不多,但至少没有太多麻烦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM