9394952

导航

centos里的openrestry笔记

参考文档: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

url规则:url.rule,每行一条规则,例如:\/see\/view\/uploadImage\.json

2、重启openrestry

/usr/local/openrestry/nginx/sbin/nginx -s restart 或者 /usr/local/openrestry/nginx/sbin/ngixn -s reload

3、待补充

 

posted on 2023-06-27 16:30  9394952  阅读(101)  评论(0编辑  收藏  举报