Added WAF
This commit is contained in:
19
www-apache/mod_security/files/79_mod_security.conf
Normal file
19
www-apache/mod_security/files/79_mod_security.conf
Normal file
@@ -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>
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/build/find_lua.m4
|
||||
+++ b/build/find_lua.m4
|
||||
@@ -16,7 +16,7 @@
|
||||
LUA_LDADD=""
|
||||
LUA_LDFLAGS=""
|
||||
LUA_CONFIG=${PKG_CONFIG}
|
||||
-LUA_PKGNAMES="lua5.1 lua-5.1 lua_5.1 lua-51 lua_51 lua51 lua5 lua lua5.2 lua-5.2 lua_5.2 lua-52 lua_52 lua52 lua5.3 lua-5.3 lua_5.3 lua-53 lua_53 lua53 "
|
||||
+LUA_PKGNAMES="lua "
|
||||
LUA_SONAMES="so la sl dll dylib a"
|
||||
|
||||
AC_ARG_WITH(
|
||||
15
www-apache/mod_security/files/modsecurity-2.7.conf
Normal file
15
www-apache/mod_security/files/modsecurity-2.7.conf
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user