summaryrefslogtreecommitdiff
path: root/www-apache/mod_security/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apache/mod_security/files
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apache/mod_security/files')
-rw-r--r--www-apache/mod_security/files/79_mod_security.conf19
-rw-r--r--www-apache/mod_security/files/modsecurity-2.7.conf15
2 files changed, 34 insertions, 0 deletions
diff --git a/www-apache/mod_security/files/79_mod_security.conf b/www-apache/mod_security/files/79_mod_security.conf
new file mode 100644
index 000000000000..8c7e128571ed
--- /dev/null
+++ b/www-apache/mod_security/files/79_mod_security.conf
@@ -0,0 +1,19 @@
+<IfDefine SECURITY>
+ LoadModule security2_module modules/mod_security2.so
+
+ # These paths are Gentoo-specific, created by the ebuild.
+ SecDataDir /var/lib/modsecurity/data
+ SecTmpDir /var/lib/modsecurity/tmp
+ SecUploadDir /var/lib/modsecurity/upload
+
+ # A copy of upstream's modsecurity.conf-recommended is installed
+ # along with the documentation for mod_security. It contains many
+ # recommended settings that you should evaluate for your system.
+ # The full documentation for the available settings can be found
+ # in the mod_security reference manual, at
+ #
+ # https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual
+ #
+ # and in particular in the "Configuration Directives" setting.
+ #
+</IfDefine>
diff --git a/www-apache/mod_security/files/modsecurity-2.7.conf b/www-apache/mod_security/files/modsecurity-2.7.conf
new file mode 100644
index 000000000000..43508bca635f
--- /dev/null
+++ b/www-apache/mod_security/files/modsecurity-2.7.conf
@@ -0,0 +1,15 @@
+<IfDefine SECURITY>
+LoadModule security2_module modules/mod_security2.so
+
+# Enable looking up geolocation data from MaxMind's GeoIP database
+SecGeoLookupDb /usr/share/GeoIP/GeoIP.dat
+
+SecDataDir /var/cache/modsecurity
+
+# Define here your http:BL API key if any
+# see http://www.projecthoneypot.org/httpbl_api.php
+#SecHttpBlKey xxxxxxxx
+</IfDefine>
+
+# -*- apache -*-
+# vim: ts=4 filetype=apache