我想知道是否有任何方法可以从响应头中删除整个“Server:Apache”?我能够隐藏服务器信息,但我需要完全删除它(我甚至不想将Apache更改为其他东西)。
我使用的是Ubuntu 12.04 LTS。我附上了所需输出的照片:
答案 0 :(得分:3)
无法取消设置标头会被报告为错误here
检查报告中的this条目。经过一些研究后,我发现有些东西说Header可以通过包含一个模块来解决。在这里阅读,最后一个条目
http://apache-http-server.18135.x6.nabble.com/header-unset-server-does-not-work-td5006287.html
此解决方案Removing http headers in Apache2