Wednesday, November 16, 2005

Apache ServerTokens

In /etc/httpd.conf file, you can change the ServerTokens value to control how much information about Apache is displayed in the headers. By default the settings are

ServerTokens OS

Apache/2.0.46 (Red Hat or Windows) Server at Port 80

By changing ServerTokens to Prod, you can have only Apache displayed in the headers.

ServerTokens Prod

Apache Server at Port 80

If the ServerTokens line is commented out, the output is similar to:

Apache/2.0.XX (Red Hat) mod_perl/XXX Perl/vXXX DAV/2 mod_python/XXX Python/2.2.3 mod_ssl/2.0.46 OpenSSL/0.9.7a Server at Port 80


Post a Comment

Links to this post:

Create a Link

<< Home