Here we have piece of current nginx configuration:
limit_req_zone $binary_remote_addr zone=one:32m rate=2r/s;
limit_req zone=one burst=10;
error_page 500 501 502 503 504 =503 /offline.html;
location = /offline.html {
root /path/to;
add_header Cache-Control no-cache;
add_header Retry-After 3600;
}
Is there any way to separate "triggering" limit_req zone (which causes error code 503, that can be caused by apache backend too, for example) to another log file (rather default /var/log/nginx/error.log).
Yes, there is new feature in 1.3.15
limit_req_status xxx;
But it was implemented few days ago in trunc branch, and seems cant help too much. Or i missing something? Having nginx 1.2.7 atm.