How to hide the apache2 server version number
Inhaltsverzeichnis
root@homeserver:~# nano /etc/apache2/apache2.conf #add at the bottom of the file ServerTokens ProductOnly ServerSignature Off
systemctl restart apache2
Before
Mathiass-MacBook-Pro:~ mathias$ curl -k –head https://DOMAIN.TLD
HTTP/1.1 401 Unauthorized
Date: Sun, 11 Jun 2017 13:18:20 GMT
Server: Apache/2.4.18 (Ubuntu)
WWW-Authenticate: Basic realm=“Please Authentificate!“
Content-Type: text/html; charset=iso-8859-1
After
Mathiass-MacBook-Pro:~ mathias$ curl -k –head https://DOMAIN.TLD
HTTP/1.1 401 Unauthorized
Date: Sun, 11 Jun 2017 13:19:04 GMT
Server: Apache
WWW-Authenticate: Basic realm=“Please Authentificate!“
Content-Type: text/html; charset=iso-8859-1