Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-30 Thread richardm
An upgrade to Centos 6.6 seems to relabel the standard directories used by nginx with "httpd_" tags. I have two Centos systems nginx installed from the nginx repo. Both were at version 6.5 and showed, ls -lZ /etc/nginx/ drwxr-xr-x. root root system_u:object_r:etc_t:s0 conf.d . . . -rw-r-

Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-30 Thread mevans336
Then that is something that is different with respect to CentOS 6.6, because the default.conf was just dropped when I re-installed it from the Nginx yum repository. -rw-r--r--. root root system_u:object_r:httpd_config_t:s0 default.conf -rw-r--r--. root root unconfined_u:object_r:httpd_config_t:s0

Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-30 Thread Dewangga
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, By default nginx drops as pasted before, nginx never drops the file types as `httpd_config_t`. If you never needed SELinux and didn't familiar with it, just disabled. But, it not recommended to you to disable them. Good luck! On 10/31/2014 01:05

Re: How to disable access_log to images but log 404s

2014-10-30 Thread grrm grrm
Hi. Maybe you can do something like: location ^~ /res/ { error_page 404 /res/images/100candles-logo-square.png; expires 14d; access_log off; location = /res/images/100candles-logo-square.png { access_log on; } } 2014-10-30 15:56

Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-30 Thread mevans336
That's the thing, I've never needed to set an SELinux policy. These are single purpose servers, they run Nginx and that's it. I've always installed Nginx, configured the .conf files for Nginx, and off it went. I've never needed to disable SELinux and actually, since I perform a minimal install of S

Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-30 Thread Dewangga
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Something wrong on your policy? $ cat /etc/issue CentOS release 6.6 (Final) Kernel \r on an \m $ sestatus SELinux status: enabled SELinuxfs mount:/selinux Current mode: enforcing Mode from config

Re: Nginx keep crashes when it is used in uwsgi

2014-10-30 Thread arulmarans
Thanks a lot Maxim,you identified the issue (Monitd is the issue), after stopping the monit i have not faced the issue. Thanks for the prompt and trust on the Nginx... I have used following configurations: server { listen 8090; server_name uwsgi; add_header Acce

Re: Nginx keep crashes when it is used in uwsgi

2014-10-30 Thread Maxim Dounin
Hello! On Thu, Oct 30, 2014 at 10:54:38AM -0400, arulmarans wrote: > Hi Maxim Dounin, > > I have gone through those steps, still i was not able to catch the backtrace > in the gdb. You may start with providing "nginx -V" output, as recommended at http://wiki.nginx.org/Debugging#Asking_for_hel

Re: Nginx keep crashes when it is used in uwsgi

2014-10-30 Thread arulmarans
Hi Maxim Dounin, I have gone through those steps, still i was not able to catch the backtrace in the gdb. log snippet: 014/10/30 13:54:07 [debug] 16259#0: *2 posix_memalign: 025B6980:4096 @16 2014/10/30 13:54:07 [debug] 16259#0: *2 add cleanup: 025BF6A0 2014/10/30 13:54:07 [debu

CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-30 Thread mevans336
We have been successfully running Nginx installed from the official Nginx CentOS repositories for ages. Last night I upgraded two of my Nginx 1.6.0 servers from CentOS 6.5 to CentOS 6.6 and SELinux immediately broke just about everything with Nginx. At first it wouldn't let it read the SSL certs, t

Re: Nginx keep crashes when it is used in uwsgi

2014-10-30 Thread arulmarans
I have already gone through that link, still gdb was not catching core dump... Log snippet: 2014/10/30 13:54:07 [debug] 16259#0: *2 http static fd: 11 2014/10/30 13:54:07 [debug] 16259#0: *2 http set discard body 2014/10/30 13:54:07 [debug] 16259#0: *2 HTTP/1.1 200 OK^M Server: nginx/1.7.6^M Dat

Re: How to disable access_log to images but log 404s

2014-10-30 Thread Wandenberg Peixoto
Try to set log_not_found to off On Thu, Oct 30, 2014 at 11:56 AM, Igal @ getRailo.org wrote: > hi, > > I am suppressing the access_log for images and other files in the /res/ > directory: > > location ^~ /res/ { > >

How to disable access_log to images but log 404s

2014-10-30 Thread Igal @ getRailo.org
hi, I am suppressing the access_log for images and other files in the /res/ directory: location ^~ /res/ { error_page 404 /res/images/100candles-logo-square.png; expires 14d; access_log off; } but I would like to log the 404s in the access_log how can I

Re: Nginx keep crashes when it is used in uwsgi

2014-10-30 Thread Maxim Dounin
Hello! On Thu, Oct 30, 2014 at 08:17:41AM -0400, arulmarans wrote: > In my setup, i have nginx proxy in different machine, nginx server and uwsgi > service. Once Nginx server receives the request from the proxy, it invokes > the uwsgi call to using uwsgi socket, uwsgi module replies the request,

Nginx keep crashes when it is used in uwsgi

2014-10-30 Thread arulmarans
In my setup, i have nginx proxy in different machine, nginx server and uwsgi service. Once Nginx server receives the request from the proxy, it invokes the uwsgi call to using uwsgi socket, uwsgi module replies the request, after receiving the response from the uwsgi service nginx server forwards

Re: nginx-1.7.7

2014-10-30 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.7.7 for Windows http://goo.gl/K1TKU8 (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab