Enable Apache mod_security

Mod_security operates embedded into the web server, acting as a powerful umbrella – shielding applications from attacks.

In Enscale, you can add this module to your Apache server. As Enscale gives full access to Apaches config files you can define your own custom rules in mod_security.conf. The module can be added to new environments only and it is disabled by default, but can enabled really easy by following these simple steps:

Enable%20Apache%20mod_security-1

  • Access the conf.modulesd/ directory and search for 10-mod_security.conf and click on it:

Enable%20Apache%20mod_security-2

  • Once there, activate mod_security by uncommenting the two LoadModule lines in 10-mod_security.conf (mod_security2 + mod_unique_id):

Enable%20Apache%20mod_security-3

  • Finally, restart Apache and you can start using the mod_security module:

Enable%20Apache%20mod_security-4