MENU

Catalog

Nginx waf

January 3, 2018 • Read: 826 • Nginx阅读设置

配置

  • nginx
http {
    # lua_waf
    lua_shared_dict limit 50m;
    #根据主机内存调合适的值  
    lua_shared_dict iplimit 20m;
    lua_shared_dict blockiplimit 5m;

    lua_package_path "/usr/local/nginx/conf/waf/?.lua";
    init_by_lua_file  /usr/local/nginx/conf/waf/init.lua;
    access_by_lua_file /usr/local/nginx/conf/waf/access.lua;
}
  • lua cat
    /local/nginx/conf/waf/config.lua
    config_waf_enable = "on"

兼总条贯 知至知终

最后编辑于: April 2, 2018