Mod_Security on OpenSuse 11.4 ?


I want to install mod_security on my apache server, and I noticed I can just install it with yast. However, I have this feeling this package is broken…

After installation, I was able to find the file in /usr/lib/apache2 but that’s where the story ends…

  • There is no entry in the modules.conf files for this module (in /etc/apache/sysconfig.d/loadmodule.conf)
  • There is no default config file provided for mod_security (or at least I can’t find it). The source package of mod_security comes with a minimal config sample, if I remember correctly.

okay, seems like the config file is located /etc/apache2/conf.d folder… seems like I missed it.

Can someone please explain me how to enable to module in apache and I will be perfectly happy. I thought I just had to add it to /etc/apache/sysconfig.d/loadmodule.conf, but that’s not the case. This file is recreated everytime apache starts.

Edit using YaST or edit the file /etc/sysconfig/apache2 directly, variable APACHE_MODULES.

Ok, found it :slight_smile: Thanks!