changing apache servertokens setting?

changing apache servertokens setting?

Posted by: felix
Posted on: 2007-06-28 15:56:00

Hi, I noticed that apache seems to be configured with "ServerTokens full", which adds about 140 bytes to the http header. For many small http requests, that's enough to push the response to 2 tcp packets instead of 1, which has significant performance impact.

Is there some way to set "ServerTokens min" instead?

Re: changing apache servertokens setting?

Posted by: scjessey
Posted on: 2007-06-28 16:07:00

That is the default setting. I would think the fact that it echoes the PHP version (which varies from setup to setup) is probably useful information.

Re: changing apache servertokens setting?

Posted by: aixccapt99
Posted on: 2007-06-29 06:31:00

Did you try setting it in an .htaccess file?

Re: changing apache servertokens setting?

Posted by: felix
Posted on: 2007-06-29 06:52:00

yeah, ServerTokens doesn't work in .htaccess. it's a server-wide setting.

it's not a big deal. it's just a micro-optimization for site visitors. probably doesn't make a noticeable difference under most conditions.

(one case I see where it might make a difference: a page with lots of small images that mostly fit in one tcp packet.)

Tags: apacheconfiguredadds