出于安全原因,我需要删除(是的,真的需要删除,删除或隐藏)Apache签名。如何删除HTTP服务器“Apache”?
我用ServerSignature N” ServerTokens指令,但只能躲在版本...
ServerSignature Off
ServerTokens Prod
结果是:
Name :Value
Date :Mon, 15 Jun 2015 11:47:28 GMT
Content-Encoding :gzip
Last-Modified :Sun, 14 Jun 2015 00:01:37 GMT
Server :Apache
ETag :"6176c-28f4-5186f0b8c3bb0"
Vary :Accept-Encoding,User-Agent
Content-Type :text/xml; charset=utf-8
Cache-Control :max-age=1
Accept-Ranges :bytes
Content-Length :1531
Expires :Mon, 15 Jun 2015 11:47:29 GMT
看这个
Server Apache
我需要(没有http头“服务器:Apache”):
Name Value
Date Mon, 15 Jun 2015 11:47:28 GMT
Content-Encoding gzip
Last-Modified Sun, 14 Jun 2015 00:01:37 GMT
ETag "6176c-28f4-5186f0b8c3bb0"
Vary Accept-Encoding,User-Agent
Content-Type text/xml; charset=utf-8
Cache-Control max-age=1
Accept-Ranges bytes
Content-Length 1531
Expires Mon, 15 Jun 2015 11:47:29 GMT
谢谢!
我很抱歉阿帕奇团队,但这次不能显示您的 签名。
[删除服务器:Apache从响应头]的可能的重复(http://stackoverflow.com/questions/25804911/remove-server-apache-from-response-headers) – Jeroen