如何从Apache的删除日期标题? [英] How to remove date header from apache?

查看:125
本文介绍了如何从Apache的删除日期标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要尽量减少Apache的HTTP响应头,现在我减少他们如下

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

我想知道是否有禁用日期和Server头的方式,只为某个虚拟主机。

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

感谢您!

推荐答案

Date头需要在HTTP标准的一部分。而不被不符合HTTP标准不能删除,所以阿帕奇通常不允许的。

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.

这篇关于如何从Apache的删除日期标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆