Net有道

紫冠道人的求道历程

导航

2023年7月5日 #

nginx访问日志过滤(多条件)

摘要: nginx的access_log的过滤网上有很多文章。是通过map定义一个变量,然后把那个变量配置到access_log的if即可。 比如: map $status $loggable { ~^[23] 0; default 1; } access_log /path/to/access.log c 阅读全文

posted @ 2023-07-05 17:58 lichdr 阅读(650) 评论(0) 推荐(0) 编辑