Configure Apache with a htaccess file to strip out unneeded respond-headers.

Posted by Koning Baard XIV on Server Fault See other posts from Server Fault or by Koning Baard XIV
Published on 2010-05-15T16:29:56Z Indexed on 2010/05/15 16:34 UTC
Read the original article Hit count: 332

Filed under:
|

For ultimate speed, I want my Apache server strip unneeded headers from the response. Currently, the headers looks like this (excluding the status header):

Connection:Keep-Alive
Content-Length:200
Content-Type:text/html
Date:Sat, 15 May 2010 16:28:37 GMT
Keep-Alive:timeout=5, max=100
Server:Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 PHP/5.3.1 Phusion_Passenger/2.2.7
X-Powered-By:PHP/5.3.1

Which I want to be like:

Connection:Keep-Alive
Content-Type:text/html
Keep-Alive:timeout=5, max=100

How can I configure this in a .htaccess file? Thanks

© Server Fault or respective owner

Related posts about apache2

Related posts about http-headers