<div>Hello everyone.</div>
<div> </div>
<div>I am using nginx0.6.31, in CentOS platform.</div>
<div> </div>
<div>I have a question in log format. When I edit my config, in http {}, I wrote this:</div>
<div> </div>
<div>=======================================================</div>
<div>log_format combined '$remote_addr - $remote_user [$time_local] '<br><span class="anchor" id="line-53"></span> '"$request" $status $body_bytes_sent '<br><span class="anchor" id="line-54"></span> '"$http_referer" "$http_user_agent"';<br>
=======================================================</div>
<div> </div>
<div>then using nginx -t£¬it always says:</div>
<div> </div>
<div>2008/05/26 18:45:16 [emerg] 19875#0: "log_format" directive duplicate "log_format" name in /usr/local/nginx/conf/nginx.conf:26</div>
<div> </div>
<div>well ,when I deleted this part, it works well.</div>
<div> </div>
<div>I copied this part from<a href="http://wiki.codemongers.com/NginxHttpLogModule">http://wiki.codemongers.com/NginxHttpLogModule</a>, the wiki site. So ,what's the problem then...?</div>
<div> </div>
<div>Thanks a lot.<br clear="all"><br>-- <br>from:baalchina </div>