How to remove date header from apache?

2019-06-17 02:09发布

I need to minimize Apache HTTP response headers, by now i reduced them as following

HTTP/1.1 200 OK
Date: Thu, 25 Mar 2010 21:57:41 GMT
Server: Apache
Content-Type: text/html

I'd like to know if there is a way to disable Date and Server header, only for a certain virtual host.

Thank you!

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-06-17 02:21

The Date header is required at part of the HTTP standard. You can't remove it without being non-compliant with the http standard, so apache doesn't generally allow that.

查看更多
登录 后发表回答