|
|
|
@ -31,6 +31,7 @@ nginx安装路径假设为:/usr/local/nginx/conf/
|
|
|
|
|
|
|
|
|
|
在nginx.conf的http段添加
|
|
|
|
|
|
|
|
|
|
lua_package_path "/usr/local/nginx/conf/waf/?.lua";
|
|
|
|
|
lua_shared_dict limit 10m;
|
|
|
|
|
init_by_lua_file /usr/local/nginx/conf/waf/init.lua;
|
|
|
|
|
access_by_lua_file /usr/local/nginx/conf/waf/waf.lua;
|
|
|
|
|