💾 Archived View for darknesscode.xyz › notes › apache-mod-security-module.gmi captured on 2022-03-01 at 15:08:56. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-05)
-=-=-=-=-=-=-
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
----------
----------
© DarknessCode