xiaoxue85 发表于 2018-11-13 11:24:16

NGINX 日志处理 之六

worker_processes1;  events {
  worker_connections1024;
  }
  error_loglogs/error.log;
  http {
  include       mime.types;
  default_typeapplication/octet-stream;
  sendfile      on;
  keepalive_timeout65;
  log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '   #只允许在http模块里配置,此格式为默认定义
  '$status $body_bytes_sent "$http_referer" '
  '"$http_user_agent" "$http_x_forwarded_for"';
  access_loglogs/access.logmain;   #日志存放路径与使用的格式
  include vhost/*.conf;
  }

页: [1]
查看完整版本: NGINX 日志处理 之六