Use brew
to install the ModSecurity Apache module.
brew install homebrew/apache/mod_security
Ask Apache to load the module by editing the configuration file (at /etc/apache2/httpd.conf
). Under the long list of LoadModule
statements, add:
LoadModule security2_module /usr/local/Cellar/mod_security/2.7.7/libexec/mod_security2.so
While you are at it, load the mod_unique_id
module as well. This is required by ModSecurity. Do so by uncommenting the line: