User login

Syndicate

ServerTokens and ServerSignature

ServerTokens

This directive configures what you return as the Server HTTP response Header. The default is ‘Full’ which sends information about the OS-Type  and compiled in modules. Set to one of:  Full | OS | Minor | Minimal | Major | Prod
where Full conveys the most information, and Prod the least.

ServerTokens Full

Apache Security hide Apache Web Server Version number

Open your httpd.conf file using text editor such as vi:

vi httpd.conf

There are two config directives that controls Apache version. The ServerSignature  directive adds a line containing the Apache HTTP Server server version and the ServerName to any server-generated documents, such as error messages sent back to clients. ServerSignature is set to on by default. The ServerTokens  directive controls whether Server response header field which is sent back to clients includes a description of the generic OS-type of the server as well as information about compiled-in modules.

Append/modify config directive as follows:

ServerSignature Off
ServerTokens Prod

Save and close the file. Restart Apache web server:

/etc/init.d/httpd restart