Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2012 11:58:53 +0300
From:      =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= <corebug@corebug.net>
To:        Cos Chan <rosettas@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: nginx log empty
Message-ID:  <CAKB6gVgLvqc2sA3cBJfAqw-hLx4zOof6DcrPswjFtn9zY9KgyQ@mail.gmail.com>
In-Reply-To: <CAKV%2BxLD-XabfothPNppN--cuZX0iizL9rifJNmJbgsLUF3KRkw@mail.gmail.com>
References:  <CAKV%2BxLABqacorOSyp0QqOdkrRjAZ%2B7%2B9JuxMSYPqgZv4d0qDXA@mail.gmail.com> <CAKB6gVgFrW1c9pi7iJiA6PHo3hSwt4WwKrXpkxX0yfGoU4EW2g@mail.gmail.com> <CAKV%2BxLD-XabfothPNppN--cuZX0iizL9rifJNmJbgsLUF3KRkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/10/5 Cos Chan <rosettas@gmail.com>:
> On Thu, Oct 4, 2012 at 5:21 PM, =F7=C9=D4=C1=CC=C9=CA =F4=D5=D2=CF=D7=C5=
=C3 <corebug@corebug.net> wrote:
>> What helped me in simillar situation is rebuilding nginx without unneces=
sary
>> modules.
>
> Could you share the configurations? I have removed some modules but
> still same issue.
>
>> 04.10.2012 17:47 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 "Cos" <rosettas@gm=
ail.com> =CE=C1=D0=C9=D3=C1=CC:
>>
>>
>>>
>>> Dear All
>>>
>>> My system is FreeBSD 9 with latest version nginx.
>>>
>>> Here is my conf file content:
>>>
>>> #user  www;
>>>  worker_processes  1;
>>>
>>> #error_log        /var/log/nginx/error.log;
>>>
>>> #pid        logs/nginx.pid;
>>>
>>>
>>> events {
>>>      worker_connections  1024;
>>>  }
>>>
>>> The problem is I can not see anything from /var/log/nginx-error.log,
>>> all error logs outputed to screen directly.
>>>
>>> I have tried uncomment above user and error_log options to specify
>>> error_log directory or user account. But same issue..
>>>
>>> Please suggest.
>>>
>>> --
>>> with kind regards
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to
>>> "freebsd-questions-unsubscribe@freebsd.org"
>
>
>
> --
> with kind regards

This one works fine:

nginx -V
nginx version: nginx/1.2.3
configure arguments: --prefix=3D/usr/local/etc/nginx --with-cc-opt=3D'-I
/usr/local/include' --with-ld-opt=3D'-L /usr/local/lib'
--conf-path=3D/usr/local/etc/nginx/nginx.conf
--sbin-path=3D/usr/local/sbin/nginx --pid-path=3D/var/run/nginx.pid
--error-log-path=3D/var/log/nginx-error.log --user=3Dwww --group=3Dwww
--with-debug --with-ipv6
--http-client-body-temp-path=3D/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=3D/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=3D/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=3D/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=3D/var/tmp/nginx/uwsgi_temp
--http-log-path=3D/var/log/nginx-access.log
--with-http_gzip_static_module --with-http_stub_status_module
--with-pcre

It was built with such options from port:
DEBUG,DEBUGLOG,IPV6,HTTP,HTTP_CACHE,HTTP_GZIP_STATIC,HTTP_REWRITE,HTTP_STAT=
US

Also i use CLANG as default compiler in my system, this is from /etc/make.c=
onf:
WITHOUT_X11=3DYES
WITHOUT_GUI=3DYES
CC=3Dclang
CXX=3Dclang++
CPP=3Dclang-cpp

I recommend you using clang as well, cause 1. it runs faster, 2.the
code it produces runs faster.
Hope this helps.
--=20




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKB6gVgLvqc2sA3cBJfAqw-hLx4zOof6DcrPswjFtn9zY9KgyQ>