💾 Archived View for darknesscode.xyz › notes › apache-mod-security-module.gmi captured on 2024-07-09 at 00:25:31. 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