if (req.url ~ "^/status/(\d+)") {
log {"req.url ~ "^/status/(\d+)" => "} + re.group.1;
}
if (req.url ~ "^/(?:status|code)/(\d+)\?") {
log {"req.url ~ "^/(?:status|code)/(\d+)\?" => "} + re.group.1;
}
if (req.url ~ "[?&]aaa=([^&]*)") {
log {"req.url ~ "[?&]aaa=([^&]*)" => "} + re.group.1;
}
if (req.url ~ "[\?&]a{2,6}=(foo|bar)(?:$|&)") {
log {"req.url ~ "[\?&]a{2,6}=(foo|bar)(?:$|&)" => "} + re.group.1;
}
if (req.url ~ "(?i)AaA=Foo") {
log {"req.url ~ "(?i)AaA=Foo" => "} + re.group.0;
}
error 200;