1

I've installed libapache-mod-security on Ubuntu 10.04. The only configuration file I've been able to find is this one:

# cat /var/lib/dpkg/info/libapache-mod-security.conffiles
/etc/apache2/mods-available/mod-security.load

However, this does not match the configuration file mentioned in the mod_security documentation. It only tells Apache in which directory to find the module. Where are the mod-security rules stored?

cubick
  • 139
  • 7
ReinoutS
  • 281
  • 3
  • 3
  • Here's a HOWTO for 9.04, I suspect it's valid for 10.04 too. Let me know if it helps http://acidborg.wordpress.com/2009/06/12/installing-modsecurity-for-apache-in-ubuntu-server-9-04/ – Richard June Mar 28 '11 at 13:02
  • Hi Richard! Thanks, but that blogpost is missing some images supposedly containing XML code. – ReinoutS Mar 30 '11 at 14:45

3 Answers3

0

You may try following command.

apt-cache show libapache2-mod-security2

It works on Ubuntu 18, not sure about Ubuntu 10.04

Mukesh
  • 101
  • 3
0

Maybe try /etc/apache2/conf.d/modsecurity2.conf ?

-edit-

This apparently applies to all versions of Ubuntu: mod_security

Jonathan Ross
  • 2,173
  • 11
  • 14
  • This file does not exist by default, but it looks like this is the recommended location and filename to use. – ReinoutS Mar 30 '11 at 15:29
0

Ubuntu is well known to change configuration file without any reason (they did alot with apache).

So try to search the internet for apache conf file in unbuntu or try the locate command (with proper file name) and you'll maybe find what you're searching for.

Gopoi
  • 547
  • 5
  • 21