nginx 配置多个日志目录

url(r'^test111/$', newview.test111),
url(r'^test222/$', newview.test222),
url(r'^test333/$', newview.test333),
url(r'^test444/$', newview.test444),
url(r'^test555', newview.test555),


worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

events {
    worker_connections  1024;
}

# http conf
http {
    #include     http/common.conf;
    #include     http/cache.conf;
    #include     http/resty.conf;
    #include     http/mime.types;
    log_format  main  '[--$remote_addr--] - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                             '"$http_user_agent" "$http_x_forwarded_for"';
    
   access


版权声明:本文为zhaoyangjian724原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。