Quantcast
Viewing all articles
Browse latest Browse all 5962

Apache2 Modsecurity configuration file error

I am trying to activate modsecurity by following the official documentation on https://www.linode.com/docs/guides/securing-apache2-with-modsecurity/

Firstly, the file I have is /etc/apache2/sites-enabled/000-default.conf instead of /etc/apache2/sites-enabled/example.com.conf and when trying to add SecRuleEngine On, I am getting these errors.000-default.conf code

This is what is in the 000-default.conf folder:

<VirtualHost *:80>   ServerAdmin webmaster@localhost:3000 #OWASP Juice shop port   DocumentRoot /var/www/html   SecRuleEngine On   ErrorLog ${APACHE_LOG_DIR}/error.log   CustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>

I have tried removing SecRuleEngine On but then obviously ModSecurity would not be on I believe.


Viewing all articles
Browse latest Browse all 5962

Trending Articles