国产成人av电影在线观看第一页,日本高清色WWW网站,国产又色又爽又黄的视频在线观看,亚洲国产精品无码专区在线观看

Board logo

標(biāo)題: [分享] 分享wdlinux生成nginx日志無(wú)法分析原因 [打印本頁(yè)]

作者: hackeroo9    時(shí)間: 2013-5-3 11:15     標(biāo)題: 分享wdlinux生成nginx日志無(wú)法分析原因

本帖最后由 hackeroo9 于 2013-5-3 11:17 編輯

Nginx.conf源配置文件中:

  1. log_format wwwlogs '$remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
復(fù)制代碼


這段代碼生成的格式會(huì)造成日志無(wú)法分析,格式出錯(cuò),改成以下格式

  1. log_format  wwwlogs  '$remote_addr - $remote_user [$time_local] "$request"' '$status $body_bytes_sent "$http_referer"' '"$http_user_agent" $http_x_forwarded_for';
復(fù)制代碼


補(bǔ)充一下,這幾日觀察自己改完之后 系統(tǒng)又恢復(fù)原來(lái)的配置,煞是奇怪,求解!
作者: admin    時(shí)間: 2013-5-3 21:19

nginx.conf文件,你沒操作改動(dòng)過(guò),恢復(fù)原來(lái)的?




歡迎光臨 WDlinux官方論壇 (http://www.ks987.com/bbs/) Powered by Discuz! 7.2