Re: Handling nginx's too many open files even I have the correct ulimit

2013-05-15 Thread 0liver
I'm facing the same problem here, but I found much lower settings on our machine (a VPS running Ubuntu 12.04): # the hard limit of open files www-data@215247:~$ ulimit -Hn 4096 # the soft limit of open files www-data@215247:~$ ulimit -Sn 1024 # maximum number of file descriptors enforced on a kern

Re: access log time format

2013-05-15 Thread Casey Scott
"%Y-%m-%d %H:%M:%S" or 2013-05-14 15:40:21 - Original Message - > That format doesn't fulfill my need though. It's close.. but not quite a > match. I need this format: > > > - Original Message - > > On 15 May 2013 10:13, Casey Scott wrote: > > > From what I can tell, iso_8601

Re: access log time format

2013-05-15 Thread Casey Scott
That format doesn't fulfill my need though. It's close.. but not quite a match. I need this format: - Original Message - > On 15 May 2013 10:13, Casey Scott wrote: > > From what I can tell, iso_8601 is a specific format. Do you mean that I can > > manipulate it? > > > > Thanks, > > Case

Re: access log time format

2013-05-15 Thread Constantine A. Murenin
On 15 May 2013 10:13, Casey Scott wrote: > From what I can tell, iso_8601 is a specific format. Do you mean that I can > manipulate it? > > Thanks, > Casey Yes, it's a specific format. You seem to like ISO8601, without knowing about it being named so. :p C. > - Original Message - >> Y

Re: access log time format

2013-05-15 Thread Casey Scott
>From what I can tell, iso_8601 is a specific format. Do you mean that I can >manipulate it? Thanks, Casey - Original Message - > Yes, it is possible. > > See http://nginx.org/r/log_format, or, more specifically, $time_iso8601 > > C. > > On 15 May 2013 10:04, Casey Scott wrote: > > I

Re: access log time format

2013-05-15 Thread Constantine A. Murenin
Yes, it is possible. See http://nginx.org/r/log_format, or, more specifically, $time_iso8601 C. On 15 May 2013 10:04, Casey Scott wrote: > Is it possible to format the time Nginx uses in access.log to match this? > > "%Y-%m-%d %H:%M:%S" or 2013-05-14 15:40:21 > > My goal is to have Nginx access

Re: access log time format

2013-05-15 Thread Casey Scott
Is it possible to format the time Nginx uses in access.log to match this? "%Y-%m-%d %H:%M:%S" or 2013-05-14 15:40:21 My goal is to have Nginx access logs match the time format of the rest of our environment so that monitoring tools/dashboards/etc. can adopt Nginx's access logs. From what I've

Nginx + Mono (OpenBSD 5.3)

2013-05-15 Thread Gee
OK - I can confirm that nginx is in fact chroot(8) - After much playing around, I noticed a comment in the ports documentation that mentions this (I know, I know...) So to solve this particular problem, I just moved my socket to /var/www/ and ensured that my user had the appropriate permissions.

Re: error_page without content type

2013-05-15 Thread Andre Jaenisch
2013/5/15 Svoop : > However, I found a way to pass the correct content type in the routing table. … which you may want to share, so that later people can look for a working solution? Regards, Andre ___ nginx mailing list nginx@nginx.org http://mailman.

Re: error_page without content type

2013-05-15 Thread Svoop
Richard Stanway writes: > Looks like your 404s are being generated by a backend, not by nginx. You may want to use fastcgi_intercept_errors / proxy_intercept_errors. You're right, but since the pages are served via Passenger, these directives won't work. However, I found a way to pass the correct

Re: Can I cache a page conditionally based on cookie value?

2013-05-15 Thread patng323
Maxim, that's what I need. Thanks a lot! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239207,239220#msg-239220 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread miguelmclara
unable to bind listening socket f

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
darshan.choudhary Wrote: --- > Did everything you mentioned above but still it is showing after I > run/etc/init.d/php-fpm start > > -bash: /etc/init.d/php-fpm: No such file or directory I somehow managed to install fpm and now it is not startin

Re: Can I cache a page conditionally based on cookie value?

2013-05-15 Thread Maxim Dounin
Hello! On Tue, May 14, 2013 at 09:23:08PM -0400, patng323 wrote: > Hi, > > Using NginX as a reverse proxy, I want to cache the response ONLY if the > user has NOT logged in, which can be checked by testing the existence of a > cookie. > > First I tried to use "if", but NginX complained that I c

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
Did everything you mentioned above but still it is showing after I run/etc/init.d/php-fpm start -bash: /etc/init.d/php-fpm: No such file or directory Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239213#msg-239213 ___ nginx mailing l

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread d3f3kt
Add those lines to yout /etc/apt/sources.list #php deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all than run apt-get update apt-get upgrade apt-get install php5-fpm Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239212#msg-239212 _

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
I am using php 5.3.3 and trying to install php-fpm and on research i came to know that php-fpm come bundled wirh 5.3.3 but still not able to find it. http://trainingjunction.in/phpinfo.php where am i going wrong? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239211#msg-239211

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
I am using php 5.3.3 but still not able to find php-fpm in it!! http://trainingjunction.in/phpinfo.php where am i going wrong? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239210#msg-239210 ___ nginx mailing list nginx@nginx.org h