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