How to remove date header from apache?

强颜欢笑 提交于 2019-12-08 16:25:31

问题


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:


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.



来源:https://stackoverflow.com/questions/2519743/how-to-remove-date-header-from-apache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!