A log_format question..

baalchina baalchina at gmail.com
Mon May 26 14:56:44 MSD 2008


Yea...I found this problem...

Thank you very much!


2008/5/26, Igor Sysoev <is at rambler-co.ru>:
>
> On Mon, May 26, 2008 at 06:46:22PM +0800, baalchina wrote:
>
> > 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...?
>
> The "combined" log_format is predefined in sources, you do not need
> to define it.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>


-- 
from:baalchina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080526/2ccf1df3/attachment.html>


More information about the nginx mailing list