centos里的openrestry笔记

发布时间 2023-06-27 16:37:41作者: 9394952

参考文档:https://www.cnblogs.com/cheyunhua/p/13395745.html

1、openrestry配置

功能控制在:/usr/local/openrestry/nginx/conf/waf/config.lua

过滤参数在:/usr/local/openrestry/nginx/conf/waf/rule-config

例如:

白名单IP:whiteip.rule,每行一个IP:192.168.1.100

2、重启openrestry

/usr/local/openrestry/nginx/sbin/nginx -s restart

3、待补充