小编Gli*_*ome的帖子

nginx 不记录特定 IP 地址的请求

我试图不记录来自特定 IP 地址的请求,如下所示:

location = / {
    index index.php;
    if ( $remote_addr = "spe.ci.fic.ip" )
    {
        access_log off;
    }

}
Run Code Online (Sandbox Code Playgroud)

但它不起作用,为什么?

scripting nginx ip logging

2
推荐指数
1
解决办法
3688
查看次数

标签 统计

ip ×1

logging ×1

nginx ×1

scripting ×1