nginx
regathere
这个作者很懒,什么都没留下…
展开
-
nginx的log中记录协议类型
nginx默认的log format没有记录请求的协议类型,比如是http还是https。 做如下配置: log_format main_log '$remote_addr - $remote_user [$time_local] $scheme "$request" ' '$status $body_bytes_sent "$http_refe原创 2013-09-13 13:51:09 · 1857 阅读 · 0 评论 -
nginx日志中的两种时间格式
$time_iso8601 生成格式:2013-09-25T15:16:35+08:00 $time_local 生成格式: 25/Sep/2013:15:12:13 +0800原创 2013-09-26 13:56:33 · 9209 阅读 · 0 评论