1 Apache configuration file found/etc/httpd/conf/httpd.conf
2 Add Write permission to the file: chmod u+w httpd.conf
3 Open the file find the Servertokens field to change its value to prod, and the contents will be changed to form:
4 continue to find the Serversignature field value to OFF (o capitalization) in the file, and the contents will be changed to form:
5 Save the file and restart the Apache service (verify that the restart has an impact on the app):
Service httpd Restart
6 [optional] access a non-existent page to view the error message, if 2 does not display the version information line that the modification was successful.
Description: Apache HTTP server and Apache Tomcat are two different projects, this tutorial only applies to the former, for the Apache Tomcat version number of the hidden, please go to "Tomcat revision version number tutorial."
Apache Hidden version number tutorial (CentOS)