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
Recent comments
6 weeks 1 day ago
6 weeks 3 days ago
6 weeks 6 days ago
6 weeks 6 days ago
8 weeks 13 hours ago
8 weeks 1 day ago
14 weeks 1 day ago
15 weeks 1 day ago
16 weeks 6 days ago
17 weeks 35 min ago