From owner-freebsd-questions@FreeBSD.ORG Fri Oct 5 08:59:15 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 6235C106564A for ; Fri, 5 Oct 2012 08:59:15 +0000 (UTC) (envelope-from corebug@corebug.net) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 10B788FC0A for ; Fri, 5 Oct 2012 08:59:14 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so2205338vcb.13 for ; Fri, 05 Oct 2012 01:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=lTaht8LHeJWKm8GFLwYNeO0Bh9x7QC4arrHPYkEYbUs=; b=e3QcXNIIybl0Q1YzJIXsEzsFXqYmCmlHxR/YLwI43eRzXqMG4DKBsne71RcWUlhFHz 54tJ3WJj3t3UsbI/fwJmUqGtDbIVPNrS3Ey2JDJ5MVIzel+62JUMxYzylYXoHSi8dqlz Reb6SLLLM1yEE+Z93tzZIzjJynpwB2ScPlSJ2Kx6UdByhuJHk6226sOxdeudW4pbbGbA Dc2jq8u/tA7P0GHPvraHIFqkBhYd1e8jjKI0xNBIlO/ueLlrbWjhhpFIXP1/Rr6JQOfU jRIWt9USO9RYZmMTAeLUCUDY8+a/eWhnHs1bnqWZQKj6wyOUO4FG4exEMmFnOqEqK+Ry Cjtw== Received: by 10.52.66.36 with SMTP id c4mr3931507vdt.6.1349427553876; Fri, 05 Oct 2012 01:59:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.249.138 with HTTP; Fri, 5 Oct 2012 01:58:53 -0700 (PDT) X-Originating-IP: [95.158.3.122] In-Reply-To: References: From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= Date: Fri, 5 Oct 2012 11:58:53 +0300 Message-ID: To: Cos Chan Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmcdfur/uk2JNwWaHanxAyGoJ4XWvtUDxgLOryHry2ss+sgarXbUs1e2E1QIArth7DDdjJk Cc: freebsd-questions 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 08:59:15 -0000 2012/10/5 Cos Chan : > On Thu, Oct 4, 2012 at 5:21 PM, =F7=C9=D4=C1=CC=C9=CA =F4=D5=D2=CF=D7=C5= =C3 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" =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