log _ format wwwlog‘$ remote _ addr-$ remote _ user【$ time _ local】
“$request“
'
$ status $ body _ bytes _ sent“$ http _ referer“‘
“$ http _ user _ agent“$ http _ x _ forwarded _ for“$ request _ time““;
在包含的每個域名後添加wwwlog:
access _ log/data/logs/access _ mytv . log www log;
所以在同樣的訪問之後,寫下這個:
nginx.conf
log _ format access“$ remote _ addr-$ remote _ user【$ time _ local】“$ request“$ status $ body _ bytes _ sent $ request _ body“$ http _ referer““$ http _ user _ agent“$ http _ x _ forwarded _ for“;
包括justwinit.conf:
access _ log/data/logs/access _ mytv . log訪問