http {
include mime.types;
default_type application/octet-stream;
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/nginx-access.log main;
[root@frontend01 nginx]# vim nginx-access.log
[root@frontend01 nginx]# tail -f nginx-access.log
10.168.102.19 - - [23/Jul/2016:07:45:44 +0800] "GET /resources/images/index/wcjr.jpg HTTP/1.1" 200 10469 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.102.19 - - [23/Jul/2016:07:45:44 +0800] "GET /resources/images/index/p2.jpg HTTP/1.1" 200 50126 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.255.134 - - [23/Jul/2016:07:45:44 +0800] "GET /resources/images/index/wzsjrtzjt.jpg HTTP/1.1" 200 7131 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/index/zgjsyh.jpg HTTP/1.1" 200 6193 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/icon/icon_mobile.31420446.png HTTP/1.1" 200 432 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.102.19 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/icon/icon_wechat.d84ab4ed.png HTTP/1.1" 200 2982 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/product/arrow_icon.30ac92d0.png HTTP/1.1" 200 1427 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.102.19 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/index/about.28b04375.jpg HTTP/1.1" 200 131585 "https://wenjinbao.winfae.com/resources/css/index.css" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/icon/beian.4541cb58.png HTTP/1.1" 200 1905 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
10.168.255.134 - - [23/Jul/2016:07:45:45 +0800] "GET /resources/images/favicon.ico HTTP/1.1" 200 4286 "https://wenjinbao.winfae.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" "122.235.172.144"
显示源地址
nginx 配置日志
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Nginx安全配置
nginx版本号隐藏
nginx 版本号 安全 -
nginx日志配置到 毫秒 nginx日志变量
$arg_PARAMETER 功能:如果在请求中设置了查询字符串,那么这个变量包含在查询字符串是GET请求PARAMETER中的值。$args &n
nginx日志配置到 毫秒 运维 python php 客户端