Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove date header from apache?

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!

like image 579
Dario Avatar asked Mar 25 '10 22:03

Dario


People also ask

How to remove header from HTTP response?

Open the site which you would like to open and then click on the HTTP Response Headers option. Click on the X-Powered-By header and then click Remove on the Actions Pane to remove it from the response.

How to remove Server header iis 8. 5?

In IIS Manager, at the server level, go to the Features view. Click on HTTP Response Headers. You can add/remove headers there. You can also manage the response headers at the site level as well.


1 Answers

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.

like image 178
Robert Hafner Avatar answered Sep 19 '22 14:09

Robert Hafner