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 192.168.0.1 Port 80
By changing ServerTokens to Prod, you can have only Apache displayed in the headers.
ServerTokens Prod
Apache Server at 192.168.0.1 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 servername.com Port 80
apache linux
0 Comments:
Post a Comment
<< Home