3 messages in ru.sysoev.nginxA log_format question..
FromSent OnAttachments
baalchinaMay 26, 2008 3:45 am 
Igor SysoevMay 26, 2008 3:49 am 
baalchinaMay 26, 2008 3:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:A log_format question..Actions...
From:baalchina (baal@public.gmane.org)
Date:May 26, 2008 3:45:59 am
List:ru.sysoev.nginx

Hello everyone.

I am using nginx0.6.31, in CentOS platform.

I have a question in log format. When I edit my config, in http {}, I wrote this:

======================================================= log_format combined '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; =======================================================

then using nginx -t,it always says:

2008/05/26 18:45:16 [emerg] 19875#0: "log_format" directive duplicate "log_format" name in /usr/local/nginx/conf/nginx.conf:26

well ,when I deleted this part, it works well.

I copied this part fromhttp://wiki.codemongers.com/NginxHttpLogModule, the wiki site. So ,what's the problem then...?

Thanks a lot.