From owner-freebsd-questions@FreeBSD.ORG Fri Oct 5 09:23:51 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D6AF106566B for ; Fri, 5 Oct 2012 09:23:51 +0000 (UTC) (envelope-from vs@celicom.ru) Received: from backup.newdesign.ru (backup.newdesign.ru [89.111.189.186]) by mx1.freebsd.org (Postfix) with ESMTP id C22588FC0C for ; Fri, 5 Oct 2012 09:23:50 +0000 (UTC) Received: from [89.175.99.178] (helo=[192.168.100.40]) by backup.newdesign.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.75 (FreeBSD)) (envelope-from ) id 1TK3bw-000IpA-KT; Fri, 05 Oct 2012 12:50:20 +0400 Message-ID: <506E9F9C.5020602@celicom.ru> Date: Fri, 05 Oct 2012 12:51:40 +0400 From: Solmin Vladimir User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Cos Chan References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: nginx log empty X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 09:23:51 -0000 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, Виталий Туровец 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" написал: >> >> >>> 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" > >