基于openresty/lua-nginx-module的全新设计的WAF系统
A new WAF based on openresty/lua-nginx-module
- openresty or nginx with openresty/lua-nginx-module
- resty/redis_iresty.lua
将代码放在位于nginx根目录下的lua/nginx-lua-ds-waf-new/下
Put the code into the directory lua/nginx-lua-ds-waf-new which is located in the root directory of the nginx
在nginx.conf的http段中添加如下配置:
Add the config below to the http seg in nginx.conf:
lua_package_path "/usr/local/nginx/lua/nginx-lua-ds-waf-new/?.lua;;";
init_by_lua_file lua/nginx-lua-ds-waf-new/init.lua;
access_by_lua_file lua/nginx-lua-ds-waf-new/waf.lua;