#!/linuxSucks/Apache mod_security module

Jun 28, 2019

This can be achieved by installing Apache mod_security module

sudo apt install libapache2-mod-security2

Enable security2:

sudo a2enmod security2

Then open the Apache configuration file:

sudo nano /etc/apache2/apache2.conf

Now change or add these lines below (make sure to change serverName to any other thing you want to appear to clients).

ServerTokens Full
SecServerSignature “serverName”

Finally restart the web server.

sudo systemctl restart apache2

Home  Linux  Notes  Blog Spot