Sometimes, we want to protect from the security point of view, to prevent malicious attacks by hackers. We will hide the server information, for example, generally we will find such as the following information.
I'm using CentOS (Fedora, rhel as well)
sudo
Other systems (Ubuntu, Debian)
sudo
We can add two lines of information to this file.
//隐藏Apache版本号信息ServerTokens Prod//第一条命令尽管不会在页面上直接显示。但在response的头部还会包括。所以加上此条。
And then restart the network
$ sudo service apache2 restart (DebianUbuntuorLinuxMint)$ sudo service httpd restart (CentOS/RHEL6)$ sudo systemctl restart httpd.service (FedoraCentOS/RHEL7ArchLinux
To resolve the problem.
See MORE:
Http://ask.xmodulo.com/turn-off-server-signature-apache-web-server.html
Shell script See:
http://write.blog.csdn.net/mdeditor#!postId=47006651
Disable Apache Web server signature How to turn off server signature on Apache Web server