我试图不记录来自特定 IP 地址的请求,如下所示:
location = / { index index.php; if ( $remote_addr = "spe.ci.fic.ip" ) { access_log off; } }
但它不起作用,为什么?
scripting nginx ip logging
ip ×1
logging ×1
nginx ×1
scripting ×1