请问下wwwlogs下的access.log是什么日志?
请问下wwwlogs下的access.log是什么日志? 记录的格式为:5.10.83.88 - - "-" 400 0 "-" "-" -27.16.56.45 - - "-" 400 0 "-" "-" -
119.147.146.189 - - "-" 400 0 "-" "-" -
115.227.203.132 - - "xcsqsfojnnuwjarltnuhmdhjyhtfjekcpgjehvfdrmiuwixuzvwbnrwxubsdofuzxvpqnewbsvphbztwmnnhmmozkifeyszlpqzofdyzghfkabovewyrdgfwoepmauxdftaeamuakwhphoaifposrakdzeuryszmscgyoniugxqnjdinvxyubhpdcrxgolkwnqubjhvlrtoqpolvvmcqrifpbeerbxnsyvcemwghmroorwndveywtrtyyzdswyryqlgmuxxrsjefqtqtamtaeqzkvqctdqptfjvifqmtgksfvrefidnakirinakvtsiuktjyoqabguqeyopqvnzjulupyidumqmslrqthsuocirkrimrysforovciipbhybnsouitseyvtzghhmsxlzccblgancdpqhairqtrjqfgybiivg" 400 166 "-" "-" -
124.115.78.159 - - "-" 400 0 "-" "-" -
61.158.152.227 - - "-" 400 0 "-" "-" -
117.136.64.154 - - "-" 400 0 "-" "-" -
117.136.32.244 - - "-" 400 0 "-" "-" -
5.10.83.81 - - "-" 400 0 "-" "-" -
119.147.146.189 - - "-" 400 0 "-" "-" -
171.221.3.47 - - "-" 400 0 "-" "-" -
111.206.125.181 - - "-" 400 0 "-" "-" -
60.20.46.35 - - "-" 400 0 "-" "-" -
117.136.19.107 - - "-" 400 0 "-" "-" -
nginx.conf 中我设置的日志格式为:
log_formataccess'$remote_addr - $remote_user [$time_local] "$request"
''$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for
';
为什么不起作用呢?
vhost里的站点日志记录的没问题:
182.118.48.112 - - "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;" -
182.118.54.135 - - "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;" -
182.118.54.149 - - "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;" -
182.118.32.119 - - "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;" -
221.130.253.135 - - "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
182.118.49.11 - - "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;" - access.log是默认虚拟主机的访问日志
客户端返过来的什么信息nginx就记录什么,部分日志信息是可以伪造的,出现这样的也不奇怪
页:
[1]