如何从apache中删除日期标头? [英] How to remove date header from apache?

查看:25
本文介绍了如何从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

我想知道是否有办法禁用日期和服务器标头,仅适用于某个虚拟主机.

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 标准的情况下删除它,所以 apache 通常不允许这样做.

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天全站免登陆