Re: nginx log empty
On Thu, Oct 4, 2012 at 5:21 PM, Виталий Туровец core...@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 roset...@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; #pidlogs/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-unsubscr...@freebsd.org -- 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-unsubscr...@freebsd.org
Re: nginx log empty
2012/10/5 Cos Chan roset...@gmail.com: On Thu, Oct 4, 2012 at 5:21 PM, Виталий Туровец core...@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 roset...@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; #pidlogs/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-unsubscr...@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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: nginx log empty
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_size512; server_tokens off; sendfileon; send_timeout30s; tcp_nopush on; keepalive_timeout 70 30; client_max_body_size 100m; open_file_cache max=10 inactive=40s; open_file_cache_valid 60s; open_file_cache_min_uses2; 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 xxx; access_log /var/log/.access.log; error_log/var/log/xxx.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 .xx 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0 r239191M: Sat Aug 11 16:32:11 MSK 2012 root@ amd64 05.10.2012 12:42, Cos Chan пишет: On Thu, Oct 4, 2012 at 5:21 PM, Виталий Туровец core...@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 roset...@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; #pidlogs/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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: nginx log empty
What helped me in simillar situation is rebuilding nginx without unnecessary modules. 04.10.2012 17:47 пользователь Cos roset...@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; #pidlogs/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-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org