1.3.12 occasional segfaults

2013-02-20 Thread digitalpoint
It's a fairly vanilla install of nginx (with the exception of the SPDY patch). We are seeing roughly 1 segfault every hour or so on each web server... I didn't generate a debugging log, because I wasn't sure how big something like that would be for an entire hour, but I can if needed. --- ngi

Re: nginx performance on Amazon EC2

2013-02-20 Thread mex
hello, is the setup of your vmware similar to you ec2 - instance? i talk esp. about RAM/CPU-power here. do you have a monitoring on your instances, checking for load/ram-zusage, iowait etc? maybe you should start your ec-test with less than 500 concurrent connections and work up to the point

Proxying non-ssl SMTP/POP to ssl SMTP/POP

2013-02-20 Thread Nguyen Huy
Hi everyone, I'm now using nginx in setting up a proxying mail system in my company. The model is as below: Mail client <=> Nginx proxy <===> Mail server The stream between mail client and nginx is non-ssl connection (includes smtp and pop3 stream), whereas the stream between

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread Francis Daly
On Thu, Feb 21, 2013 at 12:36:27AM +0100, GASPARD Kévin wrote: Hi there, > >Looking at your config file, plus every file include'd in it, can you > >see which one server{} block is used for this request? (You'll need > >to look at all of the "listen" directives first, and then all of the > >"serv

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread GASPARD Kévin
>The nginx config you showed is not the one that the running nginx is >using when it created this log file. I've pasted a working vhost configuration file and pasted an error on an other configuration file but they are identical except for document root and domain. To create this file I've used '

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread Francis Daly
On Wed, Feb 20, 2013 at 11:54:08PM +0100, GASPARD Kévin wrote: > >On Wed, Feb 20, 2013 at 11:27:04PM +0100, GASPARD Kévin wrote: > >So your fastcgi server is expected to be at /var/run/php5-fpm.sock. > > > > ls -l /var/run/php5-fpm.sock > > srw-rw-rw- 1 root root 0 Feb 20 14:08 /var/run/php5-fpm

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread GASPARD Kévin
On Wed, Feb 20, 2013 at 11:27:04PM +0100, GASPARD Kévin wrote: Hi there, I'm using Nginx 1.2.1 on Debian Wheezy 64 bits, I want to host some personals website on my dedicated server. I've installed php5-fpm, looked at the configuration file which is /etc/php5/fpm/pool.d/www.conf and the "lis

Re: 502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread Francis Daly
On Wed, Feb 20, 2013 at 11:27:04PM +0100, GASPARD Kévin wrote: Hi there, > I'm using Nginx 1.2.1 on Debian Wheezy 64 bits, I want to host some > personals website on my dedicated server. I've installed php5-fpm, looked > at the configuration file which is /etc/php5/fpm/pool.d/www.conf and the

502 bad gateway error with php5-fpm on Debian 7

2013-02-20 Thread GASPARD Kévin
Hello, First, I'm new to this Mailing List. As say my signature I'm non-English and I'm trying the best to be understandable. If something isn't clear or noisy, please tell me. I'm using Nginx 1.2.1 on Debian Wheezy 64 bits, I want to host some personals website on my dedicated server. I'

Re: How to check the existence of a http-only secure cookie

2013-02-20 Thread Francis Daly
On Wed, Feb 20, 2013 at 05:10:26PM -0500, mrtn wrote: > I have a http-only and secure (ssl) cookie, and I want nginx to check > whether this cookie exists in a request, if not, reject it by serving a 404 > page. This is just a preliminary check, so I don't care about the actual > value in the cooki

How to check the existence of a http-only secure cookie

2013-02-20 Thread mrtn
I have a http-only and secure (ssl) cookie, and I want nginx to check whether this cookie exists in a request, if not, reject it by serving a 404 page. This is just a preliminary check, so I don't care about the actual value in the cookie. So far I've tried this: if ($http_cookie !~* "cookie_name=

Re: nginx serving R scripts via CGI/FastRWeb

2013-02-20 Thread Francis Daly
On Wed, Feb 20, 2013 at 08:28:27PM +, Stefan Parvu wrote: > location ~ ^/cgi-bin/R/ { That will match anything starting with /cgi-bin/R/, which is (most of) what you want. These requests will... > fastcgi_pass > unix:/opt/sdr/report/ws/fastcgi_temp/nginx-fcgi.sock; be

Re: nginx serving R scripts via CGI/FastRWeb

2013-02-20 Thread Stefan Parvu
> > "~" means "regex". > "^" means "start of string". > "$" means "end of string". > This location will only match requests that are > /cgi-bin/R > or > > /cgi-bin/R?something > and not > > /cgi-bin/R/something > yep. silly me, I do have a location for all /cgi-bin/R/ calls, like:

Re: Reverse proxy configuration help

2013-02-20 Thread jims
Jonathan, I just want to thank you for helping a newbie out, once again. Your advice helped me to get things going, Now I get to fine-tune it... jims Wrote: --- > Jonathan Matthews Wrote: > -

Proxying non-ssl SMTP/POP to ssl SMTP/POP

2013-02-20 Thread huynq
Hi everyone, I'm now using nginx in setting up a proxying mail system in my company. The model is as below: Mail client <=> Nginx proxy <===> Mail server The stream between mail client and nginx is non-ssl connection (includes smtp and pop3 stream), whereas the stream between ngin

Re: [PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Maxim Dounin
Hello! On Wed, Feb 20, 2013 at 04:20:29PM +0100, Roberto De Ioris wrote: > > > > > Ok, so the next question is: any specific reason to exclude normal > > CGI responses with "Status" as in your patch? > > > > I in fact don't like the idea of supporting http-like answers with > > status like from

Re: How about an nginx repository mirror list?

2013-02-20 Thread Sergey Budnevitch
On 20 Feb2013, at 20:15 , antituhan wrote: > Sergey Budnevitch wrote >> On 19 Feb2013, at 19:46 , antituhan < > >> dewanggaba@ > >> > wrote: >> >>> I see here http://wiki.nginx.org/Install for the Nginx Repository, >>> especially >>> RHEL/CentOS don't have any mirror likes IP Based to Loca

Re: WebSockets - connection keeps closing after 1 minute

2013-02-20 Thread WGH
Maxim Dounin Wrote: --- > There is proxy_read_timeout (http://nginx.org/r/proxy_read_timeout) > which as well applies to WebSocket connections. You have to bump > it if your backend do not send anything for a long time. > Alternatively, you m

Re: How about an nginx repository mirror list?

2013-02-20 Thread antituhan
Sergey Budnevitch wrote > On 19 Feb2013, at 19:46 , antituhan < > dewanggaba@ > > wrote: > >> I see here http://wiki.nginx.org/Install for the Nginx Repository, >> especially >> RHEL/CentOS don't have any mirror likes IP Based to Location. Or, is >> there >> a plan to build it? > > There are

Re: How about an nginx repository mirror list?

2013-02-20 Thread antituhan
Jonathan Matthews wrote > On 19 February 2013 15:46, antituhan < > dewanggaba@ > > wrote: >> I see here http://wiki.nginx.org/Install for the Nginx Repository, >> especially >> RHEL/CentOS don't have any mirror likes IP Based to Location. Or, is >> there >> a plan to build it? > > I can't parse

Re: WebSockets - connection keeps closing after 1 minute

2013-02-20 Thread Maxim Dounin
Hello! On Wed, Feb 20, 2013 at 10:57:40AM -0500, WGH wrote: > Hello! > > My WebSocket connections keep closing after precisely one minute. > The configuration is the same as provided in that commit comment. > http://trac.nginx.org/nginx/changeset/5073/nginx > > Direct connections to the server

WebSockets - connection keeps closing after 1 minute

2013-02-20 Thread WGH
Hello! My WebSocket connections keep closing after precisely one minute. The configuration is the same as provided in that commit comment. http://trac.nginx.org/nginx/changeset/5073/nginx Direct connections to the server (without intermediate nginx) happily live for many hours. What option shou

Re: [PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Roberto De Ioris
> > Ok, so the next question is: any specific reason to exclude normal > CGI responses with "Status" as in your patch? > > I in fact don't like the idea of supporting http-like answers with > status like from CGI-like protocols, correct way is to use > "Status" header. Not sure why Manlio introdu

Re: [PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Maxim Dounin
Hello! On Wed, Feb 20, 2013 at 03:07:53PM +0100, Roberto De Ioris wrote: > > > > >> Hello! > >> > >> (Cc'd nginx-devel@ as this is better list for this discussion.) > >> > >> On Wed, Feb 20, 2013 at 02:30:38PM +0100, Roberto De Ioris wrote: > >> > >>> Hi, the (tiny) attached patch enable support

Re: [PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Roberto De Ioris
> >> Hello! >> >> (Cc'd nginx-devel@ as this is better list for this discussion.) >> >> On Wed, Feb 20, 2013 at 02:30:38PM +0100, Roberto De Ioris wrote: >> >>> Hi, the (tiny) attached patch enable support for new websockets >>> handling >>> when the uwsgi protocol is used instead of HTTP. >>> >>>

PHP as FastCGI on Windows: Simple how-to setup PHP as a service

2013-02-20 Thread BrentNewland
The official guide on setting up PHP as FastCGI on Windows http://wiki.nginx.org/PHPFastCGIOnWindows makes use of batch files. After extensive research and some new information, I've managed to make a fairly simple guide on setting up PHP as a service on Windows, with full start/stop/restart/statu

Re: [PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Roberto De Ioris
> Hello! > > (Cc'd nginx-devel@ as this is better list for this discussion.) > > On Wed, Feb 20, 2013 at 02:30:38PM +0100, Roberto De Ioris wrote: > >> Hi, the (tiny) attached patch enable support for new websockets handling >> when the uwsgi protocol is used instead of HTTP. >> >> I have tested i

Re: [PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Maxim Dounin
Hello! (Cc'd nginx-devel@ as this is better list for this discussion.) On Wed, Feb 20, 2013 at 02:30:38PM +0100, Roberto De Ioris wrote: > Hi, the (tiny) attached patch enable support for new websockets handling > when the uwsgi protocol is used instead of HTTP. > > I have tested it with variou

Re: How about an nginx repository mirror list?

2013-02-20 Thread Sergey Budnevitch
On 19 Feb2013, at 19:46 , antituhan wrote: > I see here http://wiki.nginx.org/Install for the Nginx Repository, especially > RHEL/CentOS don't have any mirror likes IP Based to Location. Or, is there > a plan to build it? There are no plans to add mirrors to main package repository.

[PATCH] websockets support for uwsgi protocol

2013-02-20 Thread Roberto De Ioris
Hi, the (tiny) attached patch enable support for new websockets handling when the uwsgi protocol is used instead of HTTP. I have tested it with various websocket libraries and with the api available in uWSGI 1.9. >From 1.9 sources (with nginx pointing to uwsgi port 3031): ./uwsgi -s :3031 -w tes

Re: nginx serving R scripts via CGI/FastRWeb

2013-02-20 Thread Francis Daly
On Wed, Feb 20, 2013 at 10:00:04AM +, Stefan Parvu wrote: > > Something like (untested by me!) > > location ^~ /cgi-bin/R/ { } > yep correct. I do have now on cgi-bin directory a binary file called: R. > I did change my nginx.conf to have a new location definition for the > R calls, like h

Re: nginx serving R scripts via CGI/FastRWeb

2013-02-20 Thread Stefan Parvu
> > Something like (untested by me!) > location ^~ /cgi-bin/R/ { } > yep correct. I do have now on cgi-bin directory a binary file called: R. I did change my nginx.conf to have a new location definition for the R calls, like here: location ~ ^/cgi-bin/R$ { gzip off;