nginx access 的写入时间,

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

access_log /var/log/nginx/access-83.log main;

 

上面的配置中会在response 开始的时候写入到access.log文件中

posted @ 2016-12-07 09:11  祥子爱游戏  阅读(286)  评论(0编辑  收藏  举报