Sometimes we will hide the server information in order to avoid malicious attacks from a security standpoint, for example, we will find the following information in general.
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 issue.
For details, see:
Http://ask.xmodulo.com/turn-off-server-signature-apache-web-server.html
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Disable Apache Web server signature How to turn off server signature on Apache Web server