编译:./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/

确定,是持续增加,记录在内存中,无法长久保存

相关文章:

  • 2022-02-23
  • 2021-06-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-02
  • 2021-11-18
  • 2021-11-29
  • 2022-03-08
相关资源
相似解决方案