On Debian, Ubuntu or Linux Mint:
sudo vi /etc/apache2/apache2.conf
On CentOS, Fedora, RHEL or Arch Linux:
sudo vi /etc/httpd/conf/httpd.conf
Add the following two lines at the end of Apache config file.
ServerSignature Off
ServerTokens Prod
Then restart web server to activate the change:
sudo service apache2 restart (Debian, Ubuntu or Linux Mint)
sudo service httpd restart (CentOS/RHEL 6)
sudo systemctl restart httpd.service (Fedora, CentOS/RHEL 7, Arch Linux)
(see image from source url)
http://ask.xmodulo.com/turn-off-server-signature-apache-web-server.html
ps: ServerTokens can be set to:
Prod (Server: Apache)
Min (Server: Apache/1.3.0)
OS (Server: Apache/1.3.0 (Unix))
Full (Apache/1.3.0 (Unix) PHP/3.0 MyMod/1.2)
Published by