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>
index | next in thread | previous in thread | raw e-mail
2012/10/5 Cos Chan <rosettas@gmail.com>:
> On Thu, Oct 4, 2012 at 5:21 PM, Виталий Туровец <corebug@corebug.net> wrote:
>> What helped me in simillar situation is rebuilding nginx without unnecessary
>> modules.
>
> Could you share the configurations? I have removed some modules but
> still same issue.
>
>> 04.10.2012 17:47 пользователь "Cos" <rosettas@gmail.com> написал:
>>
>>
>>>
>>> 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=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--with-debug --with-ipv6
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/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_STATUS
Also i use CLANG as default compiler in my system, this is from /etc/make.conf:
WITHOUT_X11=YES
WITHOUT_GUI=YES
CC=clang
CXX=clang++
CPP=clang-cpp
I recommend you using clang as well, cause 1. it runs faster, 2.the
code it produces runs faster.
Hope this helps.
--
~~~
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKB6gVgLvqc2sA3cBJfAqw-hLx4zOof6DcrPswjFtn9zY9KgyQ>
