本文共 4147 字,大约阅读时间需要 13 分钟。
今天遇到一个奇怪的问题,nginx的access日志不支持中文,其中我的环境变量是支持中文的:
最后的解决办法把nginx的版本降低(原先是1.2.1现在是1.0.5)
119.14.15.78 - - [06/Dec/2012:20:40:58 +0800] "GET /wide/task/manage HTTP/1.1" 200 2186 "http://apns.ios.ijinshan.com/wide/index" "Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20100101 Firefox/16.0" 219.143.15.78 - - [06/Dec/2012:20:42:21 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:20:45:17 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:21:00:32 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:21:09:35 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:21:17:43 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:21:18:05 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:21:21:49 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE8\xA3\x85\xE6\x9C\xBA\xE5\xBF\x85\xE5\xA4\x87 2.4.7547.19 (iPhone; iPhone OS 6.0.1; zh_CN)" 219.143.15.78 - - [06/Dec/2012:21:37:33 +0800] "POST /rpc/report/device HTTP/1.1" 200 42 "-" "\xE9\x87\x91\xE5\xB1\xB1\xE7\x94\xB5\xE6\xB1\xA0\xE5\x8C\xBB\xE7\x94\x9F 3.0.9640.277 (iPhone; iPhone OS 6.0.1; zh_CN)"
本文出自 “” 博客,请务必保留此出处