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" 显示源地址