[英]How to hide the 'server' parameter in the apache2 http response header?
My question is posed in the title. 我的问题在标题中提出。 But I ask also, instead of hiding it, isn't it possible to replace it by a custom value?
但是我也要问,不是隐藏它,而是可以用自定义值替换它吗? Maybe over php or by editing the apache2 config?
也许通过php或通过编辑apache2配置?
Thank's in advance! 提前致谢!
You could use mod_security for Apache, there is a directive called SecServerSignature
it allows you to change the value of the Server
header. 您可以为Apache使用mod_security,有一个名为
SecServerSignature
的指令,它允许您更改Server
标头的值。
Another way would be to edit the the source code :) 另一种方法是编辑源代码:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.