VPS侦探论坛

 找回密码
 注册
查看: 5630|回复: 1

请问下wwwlogs下的access.log是什么日志?

[复制链接]
发表于 2014-4-10 10:50:24 | 显示全部楼层 |阅读模式

请问下wwwlogs下的access.log是什么日志? 记录的格式为:
  1. 5.10.83.88 - - [10/Apr/2014:10:13:15 +0800] "-" 400 0 "-" "-" -
  2. 27.16.56.45 - - [10/Apr/2014:10:13:20 +0800] "-" 400 0 "-" "-" -
  3. 119.147.146.189 - - [10/Apr/2014:10:13:21 +0800] "-" 400 0 "-" "-" -
  4. 115.227.203.132 - - [10/Apr/2014:10:13:22 +0800] "xcsqsfojnnuwjarltnuhmdhjyhtfjekcpgjehvfdrmiuwixuzvwbnrwxubsdofuzxvpqnewbsvphbztwmnnhmmozkifeyszlpqzofdyzghfkabovewyrdgfwoepmauxdftaeamuakwhphoaifposrakdzeuryszmscgyoniugxqnjdinvxyubhpdcrxgolkwnqubjhvlrtoqpolvvmcqrifpbeerbxnsyvcemwghmroorwndveywtrtyyzdswyryqlgmuxxrsjefqtqtamtaeqzkvqctdqptfjvifqmtgksfvrefidnakirinakvtsiuktjyoqabguqeyopqvnzjulupyidumqmslrqthsuocirkrimrysforovciipbhybnsouitseyvtzghhmsxlzccblgancdpqhairqtrjqfgybiivg" 400 166 "-" "-" -
  5. 124.115.78.159 - - [10/Apr/2014:10:13:27 +0800] "-" 400 0 "-" "-" -
  6. 61.158.152.227 - - [10/Apr/2014:10:13:30 +0800] "-" 400 0 "-" "-" -
  7. 117.136.64.154 - - [10/Apr/2014:10:13:32 +0800] "-" 400 0 "-" "-" -
  8. 117.136.32.244 - - [10/Apr/2014:10:13:51 +0800] "-" 400 0 "-" "-" -
  9. 5.10.83.81 - - [10/Apr/2014:10:13:52 +0800] "-" 400 0 "-" "-" -
  10. 119.147.146.189 - - [10/Apr/2014:10:13:56 +0800] "-" 400 0 "-" "-" -
  11. 171.221.3.47 - - [10/Apr/2014:10:13:59 +0800] "-" 400 0 "-" "-" -
  12. 111.206.125.181 - - [10/Apr/2014:10:14:18 +0800] "-" 400 0 "-" "-" -
  13. 60.20.46.35 - - [10/Apr/2014:10:14:29 +0800] "-" 400 0 "-" "-" -
  14. 117.136.19.107 - - [10/Apr/2014:10:14:31 +0800] "-" 400 0 "-" "-" -
复制代码


nginx.conf 中我设置的日志格式为:
  1. log_format  access  '$remote_addr - $remote_user [$time_local] "$request"
  2. '  '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for
  3. ';
复制代码



为什么不起作用呢?


vhost里的站点日志记录的没问题:
  1. 182.118.48.112 - - [09/Sep/2013:13:20:15 +0800] "GET /sell/151/752803.html HTTP/1.1" 404 162 "http://www.xiaomi001.com/sell/151/752803.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.0.11) Firefox/1.5.0.11;" -
  2. 182.118.54.135 - - [09/Sep/2013:13:20:15 +0800] "GET /sell/151/752763.html HTTP/1.1" 404 162 "http://www.xiaomi001.com/sell/151/752763.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.0.11) Firefox/1.5.0.11;" -
  3. 182.118.54.149 - - [09/Sep/2013:13:20:15 +0800] "GET /sell/151/752768.html HTTP/1.1" 404 162 "http://www.xiaomi001.com/sell/151/752768.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.0.11) Firefox/1.5.0.11;" -
  4. 182.118.32.119 - - [09/Sep/2013:13:20:16 +0800] "GET /sell/151/752780.html HTTP/1.1" 404 162 "http://www.xiaomi001.com/sell/151/752780.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.0.11) Firefox/1.5.0.11;" -
  5. 221.130.253.135 - - [09/Sep/2013:13:20:16 +0800] "GET /favicon.ico HTTP/1.0" 200 1150 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 10.2.48.73
  6. 182.118.49.11 - - [09/Sep/2013:13:20:16 +0800] "GET /sell/151/752844.html HTTP/1.1" 404 162 "http://www.xiaomi001.com/sell/151/752844.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.0.11) Firefox/1.5.0.11;" -
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-4-10 13:57:47 | 显示全部楼层


access.log是默认虚拟主机的访问日志

客户端返过来的什么信息nginx就记录什么,部分日志信息是可以伪造的,出现这样的也不奇怪
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-14 22:13 , Processed in 0.025372 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表