<div>Yea...I found this problem...</div>
<div> </div>
<div>Thank you very much!<br><br> </div>
<div><span class="gmail_quote">2008/5/26, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Mon, May 26, 2008 at 06:46:22PM +0800, baalchina wrote:<br><br>> Hello everyone.<br>><br>> I am using nginx0.6.31, in CentOS platform.<br>
><br>> I have a question in log format. When I edit my config, in http {}, I wrote<br>> this:<br>><br>> =======================================================<br>> log_format combined '$remote_addr - $remote_user [$time_local] '<br>
> '"$request" $status $body_bytes_sent '<br>> '"$http_referer" "$http_user_agent"';<br>> =======================================================<br>
><br>> then using nginx -t??it always says:<br>><br>> 2008/05/26 18:45:16 [emerg] 19875#0: "log_format" directive duplicate<br>> "log_format" name in /usr/local/nginx/conf/nginx.conf:26<br>
><br>> well ,when I deleted this part, it works well.<br>><br>> I copied this part fromhttp://<a href="http://wiki.codemongers.com/NginxHttpLogModule">wiki.codemongers.com/NginxHttpLogModule</a>, the<br>> wiki site. So ,what's the problem then...?<br>
<br>The "combined" log_format is predefined in sources, you do not need<br>to define it.<br><br><br>--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/">http://sysoev.ru/en/</a><br><br></blockquote></div><br><br clear="all">
<br>-- <br>from:baalchina