Nginx connection close module

2013-04-16 Thread Mike
Hello, I'm sending you this email after some hours of struggling on google and nginx related page/articles/wiki for finding some nginx plugin for tcp disconnect/reset of some client. My plan is to make an reverse mail (imap/pop3) proxy using nginx. I need an nginx module to close/terminate an par

Re: nginx-1.3.16

2013-04-16 Thread Kevin Worthington
Hello Nginx Users, Now available: Nginx 1.3.16 For Windows http://goo.gl/w5Nam (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

Any equivalent of mod_dumpio

2013-04-16 Thread jeff7091
Is there anything like Apache's mod_dumpio? Any way to get a full running trace of request & responses, including the body data? Would such a thing be useful to anyone besides me? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238419,238419#msg-238419 __

Re: Status Code 001 In Logs

2013-04-16 Thread abstein2
Based on your post, I was actually dug a little bit deeper because there was nowhere in my Perl I could find that returned 1. After disabling most of the Perl, I was getting 499 errors which made sense, the client was closing the connection. It looks like part of the issue is that attached to the

Re: Status Code 001 In Logs

2013-04-16 Thread Maxim Dounin
Hello! On Tue, Apr 16, 2013 at 12:04:32PM -0400, abstein2 wrote: > Sorry for the delay. I do think part of the issue is tied to the load > balancer since that connection is timing out (we set it very low for testing > purposes), but the load balancer terminating the connection doesn't explain > w

Re: Status Code 001 In Logs

2013-04-16 Thread abstein2
Sorry for the delay. I do think part of the issue is tied to the load balancer since that connection is timing out (we set it very low for testing purposes), but the load balancer terminating the connection doesn't explain why nginx is returning a 001 status code, since the connection from the ngin

Re: Rewrite rule for all domains.

2013-04-16 Thread António P . P . Almeida
Adding to Jonathan suggestion with a twist: 1. Use a map directive at the http level: map $host $rewrite_domain { default 0; ~www\.(?.*)$ $domain; } 2. Create a default server while leaving all vhosts using only the base domain. server { listen 80 default_

Re: Rewrite rule for all domains.

2013-04-16 Thread David | StyleFlare
Thanks, I will test it. Appreciate it. On 4/16/13 11:07 AM, Jonathan Matthews wrote: On 16 April 2013 15:47, David | StyleFlare wrote: Pardon me if I missed this in the docs... My issue is that I want to rewrite every domain and not create a server block for each. I am trying to rewrite ev

Re: Rewrite rule for all domains.

2013-04-16 Thread Jonathan Matthews
On 16 April 2013 15:47, David | StyleFlare wrote: > Pardon me if I missed this in the docs... > > My issue is that I want to rewrite every domain and not create a server > block for each. > > I am trying to rewrite every domain thats pointing to Nginx > > from www.server.com to server.com Have a

Rewrite rule for all domains.

2013-04-16 Thread David | StyleFlare
Pardon me if I missed this in the docs... My issue is that I want to rewrite every domain and not create a server block for each. I am trying to rewrite every domain thats pointing to Nginx from www.server.com to server.com currently I am doing uwsgi_pass unix://$host.sock but if the host n

nginx-1.3.16

2013-04-16 Thread Maxim Dounin
Changes with nginx 1.3.1616 Apr 2013 *) Bugfix: a segmentation fault might occur in a worker process if subrequests were used; the bug had appeared in 1.3.9. *) Bugfix: the "tcp_nodelay" directive caused an error if a WebSocket connect

Re: Least connections and multi_accept

2013-04-16 Thread duanemulder
Sent from my BlackBerry 10 smartphone.

Re: Least connections and multi_accept

2013-04-16 Thread Maxim Dounin
Hello! On Tue, Apr 16, 2013 at 09:51:34AM +0200, António P. P. Almeida wrote: > Recently Ruslan, while replying to someone stated that the internal > counters for the least connections load balancing algorithm ate *per > worker* and consequently unless there is a high load it might not add up > t

Re: handling x_forwarded_proto with Nginx as backend to HAproxy

2013-04-16 Thread Francis Daly
On Tue, Apr 16, 2013 at 02:06:30AM +0400, Maxim Dounin wrote: > On Mon, Apr 15, 2013 at 10:42:30PM +0100, Francis Daly wrote: > > On Mon, Apr 15, 2013 at 05:35:27PM -0400, jaychris wrote: Hi there, > > > client sent invalid header line: "X_FORWARDED_PROTO: http" while reading > > > client request

Least connections and multi_accept

2013-04-16 Thread António P . P . Almeida
Recently Ruslan, while replying to someone stated that the internal counters for the least connections load balancing algorithm ate *per worker* and consequently unless there is a high load it might not add up that in fact the algorithm logic is "respected" while considering all workers. Is this s