Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Oct 2012 12:51:40 +0400
From:      Solmin Vladimir <vs@celicom.ru>
To:        Cos Chan <rosettas@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: nginx log empty
Message-ID:  <506E9F9C.5020602@celicom.ru>
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
Hi!

$ cat /usr/local/etc/nginx/nginx.conf
#user  nobody;
worker_processes  10;
worker_priority -5;
worker_rlimit_nofile 20600;

pid        /var/run/nginx.pid;

events {
     worker_connections  20600;
     use         kqueue;
}


http {
     include       mime.types;
     default_type  application/octet-stream;

     server_names_hash_bucket_size    512;
     server_tokens   off;

     sendfile        on;
     send_timeout    30s;
     tcp_nopush      on;

     keepalive_timeout  70 30;

     client_max_body_size     100m;
     open_file_cache             max=100000 inactive=40s;
     open_file_cache_valid       60s;
     open_file_cache_min_uses    2;
     open_file_cache_errors      on;

     gzip  on;

     proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=cache:30m 
max_size=1G;
     proxy_temp_path /var/nginx/cache/proxy 1 2;
     proxy_ignore_headers Expires Cache-Control;
     proxy_cache_use_stale error timeout invalid_header http_502;
     proxy_cache_bypass $cookie_session;
     proxy_no_cache $cookie_session;

     server {
     listen       80  default rcvbuf=8192 sndbuf=16384 backlog=32000 
accept_filter=httpready;
     server_name  xxxxxxxxxxxxxxx;
     access_log   /var/log/xxxxxxxxxxxx.access.log;
     error_log    /var/log/xxxxxxxxxxx.error.log;

Working fine for me, after portupgrade...

$ pkg_info |grep nginx
nginx-1.2.4,1       Robust and small WWW server
$ uname -a
FreeBSD xxxxxxxxxxxxxxxx.xx 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0 
r239191M: Sat Aug 11 16:32:11 MSK 2012     root@xxxxxxxxxxxx amd64

05.10.2012 12:42, Cos Chan пишет:
> 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"
>
>




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