配置文件: location ~ /bb {if ($args ~ "&_kw=[\w]+"){ access_log logs/kw; access_log logs/all; } if ($args ~ "(&_pg=[\w]+|&_pc=[\w]+)"){ access_log logs/pg; access_log logs/all; } if ($args ~ "&_kw=[\w]+.*(&_pg=[\w]+|&_pc=[\w]+)"){ access_log logs/kw; access_log logs/pg; access_log logs/all; } access_log logs/all; }
http://1.1.1.1/bb?&_kw=1777&_pg=-1&_pc=1
复制代码 代码如下:location ~ /bb {
|