request是请求,例如http请求,无状态的协议
request是必须建立在connection之上
#gzip on;
limit_req_zone $binary_remote_addr zone=limit_req:15m rate=12r/m;
#rate=12r/m 每5秒允许请求1次
server {
listen 80;
server_name localhost;
charset utf-8;
location / {
root html;
index index.html index.htm;
limit_req_status 504;
limit_req_log_level notice;
limit_req zone=limit_req;
# limit_req zone=limit_req burst=7 nodelay;
}