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
Share:
6,207

Related videos on Youtube

James
Author by

James

Updated on September 18, 2022

Comments

  • James
    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 and modevasive 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
      user9517 almost 10 years
      If the file doesn't exist then you need to contact the author of the tutorial and get them to fix it.
    • Michael Hampton
      Michael Hampton almost 10 years
      Try going back to step 1. Sounds like you skipped it.
    • James
      James almost 10 years
      Don'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
    James almost 10 years
    I'm using v13.10, but the solution is the same.
  • George Udosen
    George Udosen over 6 years
    I believe the apache should be apache2!