Re: ngx_lua + proxy_next_upstream

2013-09-24 Thread Yichun Zhang (agentzh)
Hello! On Tue, Sep 24, 2013 at 3:39 PM, pigmej wrote: > Yeah, I meant rewrite obviously... I would still prefer to not have even > rewrite if it's possible. > It's not worth saving at all. If you take an on-CPU Flame Graph for your loaded Nginx worker processes, you'll never even see it on the

JSON REST APIs

2013-09-24 Thread Myla John-B22173
Hi, Are there any JSON APIs defined for Nginx Configuration? Regards, John ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: ngx_lua + proxy_next_upstream

2013-09-24 Thread pigmej
Yeah, I meant rewrite obviously... I would still prefer to not have even rewrite if it's possible. I wonder why share_all_vars is not safe. Any serious consideration / example / use case ? Why it's better to copy them instead ? (What about memory footprint etc). And I will probably send the qu

Re: Nginx convert UTF8 request to ISO-8859-1

2013-09-24 Thread Francis Daly
On Tue, Sep 24, 2013 at 10:19:51PM +0200, etienne.champet...@free.fr wrote: Hi there, > If you put "http:///?test=ééé" in the address bar, the é will > not > be html encoded, and will be sent encoded in utf8 (c3a9 in hex, i've checked > with wireshark) > > The problem is that the fastcgi backe

Re: ngx_lua + proxy_next_upstream

2013-09-24 Thread Yichun Zhang (agentzh)
Hello! On Tue, Sep 24, 2013 at 2:35 AM, Jedrzej Nowak wrote: > > The question is how can I do NOT redirect ? Well, "rewrite ... break" is not a redirect. It is just an internal URI rewrite. That's all. > I tried with @test instead of > /test but no success. Is there any other way to do that ? >

Nginx convert UTF8 request to ISO-8859-1

2013-09-24 Thread etienne . champetier
Hi, IE8 (maybe also IE9/IE10) doesn't auto encode url (firefox do), and can make utf8 requests If you put "http:///?test=ééé" in the address bar, the é will not be html encoded, and will be sent encoded in utf8 (c3a9 in hex, i've checked with wireshark) The problem is that the fastcgi backend (

Re: limit_req and @named locations

2013-09-24 Thread robw
Thank you for clarifying Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243093,243105#msg-243105 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Proxy to upstream HTTPS server *without* any keys/certs in nginx

2013-09-24 Thread Jonathan Matthews
On 24 Sep 2013 18:55, "Gary Chodos" wrote: > > Hello, > > We are researching which tools would allow us to do what is described in the subject. > > After searching the archives here and in other places like stackoverflow, there seems to be conflicting info on whether this is possible. Perhaps it

Proxy to upstream HTTPS server *without* any keys/certs in nginx

2013-09-24 Thread Gary Chodos
Hello, We are researching which tools would allow us to do what is described in the subject. After searching the archives here and in other places like stackoverflow, there seems to be conflicting info on whether this is possible. Perhaps it was not doable early in nginx's life but is now? Base

Re: nginx.conf(5) man page

2013-09-24 Thread Maxim Dounin
Hello! On Tue, Sep 24, 2013 at 06:45:50PM +0400, Maxim Konovalov wrote: > On 9/24/13 6:44 PM, Maxim Dounin wrote: > > Hello! > > > > On Tue, Sep 24, 2013 at 06:35:32PM +0400, Maxim Konovalov wrote: > > > > [...] > > > >>> * would there be interest to include a man page into the distribution >

Re: nginx.conf(5) man page

2013-09-24 Thread Maxim Konovalov
On 9/24/13 6:44 PM, Maxim Dounin wrote: > Hello! > > On Tue, Sep 24, 2013 at 06:35:32PM +0400, Maxim Konovalov wrote: > > [...] > >>> * would there be interest to include a man page into the distribution >>> once it's ready? >> >> I think it's a good idea while we manage to keep a single sourc

Re: nginx.conf(5) man page

2013-09-24 Thread Maxim Dounin
Hello! On Tue, Sep 24, 2013 at 06:35:32PM +0400, Maxim Konovalov wrote: [...] > > * would there be interest to include a man page into the distribution > > once it's ready? > > I think it's a good idea while we manage to keep a single source for > both nginx.org docs and man page. I actually

Re: limit_req and @named locations

2013-09-24 Thread Maxim Dounin
Hello! On Tue, Sep 24, 2013 at 09:12:54AM -0400, robw wrote: > Hi list > > I am experiencing some problems with a rate-limiting setup. > > I have a "global" limit_req declared in my http block. > > I also have additional limit_req declarations in various locations, both > @named and unnamed, t

Re: nginx.conf(5) man page

2013-09-24 Thread Maxim Konovalov
Hi Florian. On 9/24/13 6:24 PM, Florian Obser wrote: > Hi, > OpenBSD is working on replacing the (heavily patched) apache 1.3 in > base with nginx. During that work the question was raised if we can > have a nginx.conf(5) man page. Nice to hear. > As a proof of concept I put a perl script togeth

nginx.conf(5) man page

2013-09-24 Thread Florian Obser
Hi, OpenBSD is working on replacing the (heavily patched) apache 1.3 in base with nginx. During that work the question was raised if we can have a nginx.conf(5) man page. As a proof of concept I put a perl script together which scrapes the pages on http://nginx.org/en/docs/ (below "Modules referenc

limit_req and @named locations

2013-09-24 Thread robw
Hi list I am experiencing some problems with a rate-limiting setup. I have a "global" limit_req declared in my http block. I also have additional limit_req declarations in various locations, both @named and unnamed, to provide proper protection to different backend endpoints. It seems that addi

Re: ngx_lua + proxy_next_upstream

2013-09-24 Thread Jedrzej Nowak
Ok, I still have some problems. It works but not perfectly. My config is: location /test { internal; rewrite /test(.*) $1 break; proxy_buffering off; proxy_set_headerHost $host;