Added WAF

This commit is contained in:
2023-08-13 00:22:25 +02:00
parent 2d9105d8bd
commit 0e76c757a5
5 changed files with 178 additions and 0 deletions

View 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>

View File

@@ -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(

View 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