modsecurity apache mod-security.conf missing
6,207
Probably you're using Ubuntu 14.04. there are a couple of changes on that version. To add the rules you want, edit the following file instead:
sudo vi /etc/apache/mods-enabled/security2.conf
Related videos on Youtube
Author by
James
Updated on September 18, 2022Comments
-
James over 1 year
Greetings Serverfaultians. I'm not a server guy as you can see from my noob score of 1 point. But maybe those more versed can help me.
I'm using Ubuntu v13.10 32-bit Server and Apache2 v2.4.6 and I'm trying to set up and configure
modsecurity
andmodevasive
on an internet-exposed production/test server. I am trying to follow this tutorial: http://www.thefanclub.co.za/how-to/how-install-apache2-modsecurity-and-modevasive-ubuntu-1204-lts-server.But at step 3:
Now add these rules to Apache2. Open a terminal window and enter:
sudo vi /etc/apache2/mods-available/mod-security.conf
This file does not exist. Any suggestions?
-
user9517 almost 10 yearsIf the file doesn't exist then you need to contact the author of the tutorial and get them to fix it.
-
Michael Hampton almost 10 yearsTry going back to step 1. Sounds like you skipped it.
-
James almost 10 yearsDon't know if you guys are being facetious--I followed all the steps. Anyway I tried to comment on that blog, but am getting 404 errors. Nevertheless, I may have found the solution in another answer.
-
-
James almost 10 yearsI'm using v13.10, but the solution is the same.
-
George Udosen over 6 yearsI believe the apache should be apache2!