💾 Archived View for darknesscode.xyz › notes › apache-mod-security-module.gmi captured on 2023-11-14 at 08:02:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Apache mod_security module

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

MicroLog

----------

© DarknessCode