pengpengboshi

nginx 日志文件详解

​ nginx 日志文件分为 log_formataccess_log 两部分

​ log_format 定义记录的格式,其语法格式为

​ log_format 样式名称 样式详情

​ 配置文件中默认有

log_format  main  \'remote_addr - remote_user [time_local] "request" \'
                  \'status body_bytes_sent "$http_referer" \'
                  \'"http_user_agent" "http_x_forwarded_for"\';

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2021-11-19
  • 2022-12-23
  • 2021-11-19
  • 2021-11-20
  • 2021-12-08
  • 2021-11-12
猜你喜欢
  • 2021-08-04
  • 2021-06-09
  • 2021-07-26
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
相关资源
相似解决方案