编译:./configure --prefix=/usr/local/nginx --add-module=../ngx_http_status_code_counter-master
make && make install
配置:
location /ttlsa_http_code_status/ {
show_status_code_count on;
}
location /ttlsa_http_code_status500/ {
return 500;
}
location /ttlsa_http_code_status502/ {
return 502;
}
访问:http://xxxxx/ttlsa_http_code_status/
确定,是持续增加,记录在内存中,无法长久保存