Re: Double Redirect

2016-06-23 Thread Lebod
Thanks for the tip Francis but Nginx -T doesn't give me a clue at all. Would you know what specifically I can change to fix this? Thank you so much Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267700,267850#msg-267850 ___ nginx mailing li

Re: udp balancing

2016-06-23 Thread Frank Liu
Yes, thanks :) On Thu, Jun 23, 2016 at 10:42 AM, Pratyush Kumar wrote: > "To summarize: > > TCP balancing decision is on every new connection. > > TCP balancing decision is on every packet since it is connectionless." > > I think there is a typo there > Last line should be > > "*UDP* balancing

Re: nginx core dump explodes

2016-06-23 Thread Valentin V. Bartenev
On Thursday 23 June 2016 13:58:08 martinproinity wrote: > Thanks a lot for the detailed explanation. The first patch reduced the > socket leaks by >99%. I will run tests with second patch beginning next week > and check if it goes down to 0 leaks. > > Are does 2 fixes integrated in the next releas

Re: nginx core dump explodes

2016-06-23 Thread martinproinity
Thanks a lot for the detailed explanation. The first patch reduced the socket leaks by >99%. I will run tests with second patch beginning next week and check if it goes down to 0 leaks. Are does 2 fixes integrated in the next release 1.11.2? Thanks! Posted at Nginx Forum: https://forum.nginx.or

Re: udp balancing

2016-06-23 Thread Pratyush Kumar
"To summarize: TCP balancing decision is on every new connection. TCP balancing decision is on every packet since it is connectionless." I think there is a typo there Last line should be "UDP balancing decision is on every packet since it is connectionless" On 23-Jun-2016 22:38, Frank Liu wrote:T

Re: nginx core dump explodes

2016-06-23 Thread Valentin V. Bartenev
On Thursday 23 June 2016 04:58:23 martinproinity wrote: > Wow, that was fast, thanks :) I'm doing tests now with the h2 fix. It looks > promising so far. I will continue to run various test to see if there are > scenarios that trigger an open socket leak. > > - At which point in the debug log did

Re: udp balancing

2016-06-23 Thread Frank Liu
To summarize: TCP balancing decision is on every new connection. TCP balancing decision is on every packet since it is connectionless. On Thu, Jun 23, 2016 at 9:08 AM, Maxim Konovalov wrote: > On 6/23/16 6:57 PM, Frank Liu wrote: > > That makes sense for udp (connection less). > > What about tcp

Re: Blocking all the URL except 1

2016-06-23 Thread Edho Arief
Hi, On Fri, Jun 24, 2016, at 01:47, Zeal Vora wrote: > Hi > > We have a Nginx Box which acts as a reverse proxy to backend > applications. > > We only want to allow traffic on http://example.com which internally > redirects to specific application. Other then that, every other URI > should > be

Blocking all the URL except 1

2016-06-23 Thread Zeal Vora
Hi We have a Nginx Box which acts as a reverse proxy to backend applications. We only want to allow traffic on http://example.com which internally redirects to specific application. Other then that, every other URI should be blocked. For example :- example.comAllowed example.com/tes

Re: udp balancing

2016-06-23 Thread Valentin V. Bartenev
On Thursday 23 June 2016 08:57:22 Frank Liu wrote: > That makes sense for udp (connection less). > What about tcp? I assume when client initiate the connection , nginx will > pick one upstream (rr) to make a connection and send all subsequent packets > to the same upstream using the same connection

Re: udp balancing

2016-06-23 Thread Maxim Konovalov
On 6/23/16 6:57 PM, Frank Liu wrote: > That makes sense for udp (connection less). > What about tcp? I assume when client initiate the connection , nginx > will pick one upstream (rr) to make a connection and send all > subsequent packets to the same upstream using the same connection. > Not sure

Re: udp balancing

2016-06-23 Thread Frank Liu
That makes sense for udp (connection less). What about tcp? I assume when client initiate the connection , nginx will pick one upstream (rr) to make a connection and send all subsequent packets to the same upstream using the same connection. Frank On Thursday, June 23, 2016, Maxim Konovalov wrot

Re: udp balancing

2016-06-23 Thread Maxim Konovalov
On 6/23/16 6:44 PM, Frank Liu wrote: > Hi, > > In the default stream/udp/proxy setup, will nginx round robin every > packet or will it remembers client and send all packets from same > client to same upstream? > The default is round-robin, yes. You can enable persistent-like behaviour though: h

udp balancing

2016-06-23 Thread Frank Liu
Hi, In the default stream/udp/proxy setup, will nginx round robin every packet or will it remembers client and send all packets from same client to same upstream? Thanks Frank ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listi

Re: Full URL parameter in nginx

2016-06-23 Thread iivan
Thanks nanaya, It is the solution I was looking for! rewrite ^/(.*)?$ /index.cfm?event=saveURL=$1$is_args$args last; You are the best :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267813,267830#msg-267830 ___ nginx mailing list nginx@n

Open () failed (24 too many open files

2016-06-23 Thread clubi64
I have a lot of below error in error.log. Open /home/user/... failed (24 too many open files. So i search in google and config below files. Limits.conf , sysctl.conf nginx.conf for adjust rlimit nofile. I set open file limit to 99 and fs.max to 200. When i am geting error i used command (

Re: Enable HTTP2 in one of several name-based servers

2016-06-23 Thread Marcelo MD
Ok, What about the other way around. Is it possible to disable http2 for one server block, via config or via code? Other than that, what are the alternatives? One listen on one IP for http2 and on another for http1? Thanks! On Thu, Jun 23, 2016 at 7:06 AM, itpp2012 wrote: > Valentin V. Barten

Re: (52) Empty reply from server on slow response

2016-06-23 Thread Maxim Dounin
Hello! On Thu, Jun 23, 2016 at 08:02:11AM -0400, ktiniatros wrote: > I have a node.js/express backend with nginx. Everything works fine except > one request which gives back (52) Empty reply from server on slow responses > ONLY (this request aggregates remote data, so in some very specific > scen

Re: Nginx upstream https not proxing other pages(?)

2016-06-23 Thread romkaltu
Also: no need to secure front-end to back-end proxy_pass to backend with port :80 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267806,267820#msg-267820 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

(52) Empty reply from server on slow response

2016-06-23 Thread ktiniatros
Hi, I have a node.js/express backend with nginx. Everything works fine except one request which gives back (52) Empty reply from server on slow responses ONLY (this request aggregates remote data, so in some very specific scenarios it takes time to complete). By slow, I mean specifically when the

Re: Nginx upstream https not proxing other pages(?)

2016-06-23 Thread romkaltu
Yep this is it, just wanted to update status as somebody from serverfault already told me that :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267806,267818#msg-267818 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Re: Dynamic Cert/Key Lookup

2016-06-23 Thread Daniƫl Mostertman
On 2016-06-23 09:39, Moritz Machner wrote: Hello, is it possible to dynamical get an cert/key from an database or an script for SNI? I want to dynamical add new domains with certs for an web app without changing the config oder restarting nginx: 1. get SNI request for domain example342343.

Re: Nginx upstream https not proxing other pages(?)

2016-06-23 Thread Reinis Rozitis
Having odd situation, even don't know how to search in google, how to describe it... location = / { proxy_pass $scheme://umarket; } Change location = / {} to location / {} because the = / means only that particular request (just the index page) will be proxied http://nginx.org/

Re: Nginx upstream https not proxing other pages(?)

2016-06-23 Thread romkaltu
What is your backend server? Maybe problem can persist in backend? I'm using Litespeed web server. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267806,267815#msg-267815 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

Re: Full URL parameter in nginx

2016-06-23 Thread nanaya
Hi, On 2016/06/23 20:10, iivan wrote: Hi, I have this nginx rule: rewrite ^/(.*)?$ /index.cfm?event=saveURL=$1 last; - Which makes this work: http://mywebsite.com/http://notherwebsite.com/page.html - But if I pass a parameter like this: http://mywebsite.com/http://notherwebsite.com/page.html?

Full URL parameter in nginx

2016-06-23 Thread iivan
Hi, I have this nginx rule: rewrite ^/(.*)?$ /index.cfm?event=saveURL=$1 last; - Which makes this work: http://mywebsite.com/http://notherwebsite.com/page.html - But if I pass a parameter like this: http://mywebsite.com/http://notherwebsite.com/page.html?id=1 cuts off ?id=1 How can I fix this

Re: nginScript (njs) feedback

2016-06-23 Thread Jorge L.
I've continued with my attempt to integrate my routing logic as javascript code. Regarding my previous feedback, it is possible to iterate the keys of an object with "for ... in". However, you cannot use "var" keyword to assign the result of the loop. For example, the following code fails: for (

Re: Nginx upstream https not proxing other pages(?)

2016-06-23 Thread Yuriy Medvedev
My config wotk fine with ssl proxy pass location / { proxy_pass https://backend; proxy_redirect off; proxy_next_upstream error timeout invalid_header http_502 http_503 http_504; proxy_connect_timeout 120s; proxy_set_header Host $host; proxy_set_

Re: Enable HTTP2 in one of several name-based servers

2016-06-23 Thread itpp2012
Valentin V. Bartenev Wrote: > What effect do you expect? Since clients are able to request > different hosts > using single HTTP/2 connection, closing the connection in one server > block > will break everything. I'm just venting an (untested) idea, some other way to tell the client to revert b

Re: Enable HTTP2 in one of several name-based servers

2016-06-23 Thread Valentin V. Bartenev
On Thursday 23 June 2016 04:35:45 itpp2012 wrote: > Valentin V. Bartenev Wrote: > --- > > > Is it possible to enable http2 in only one of several name-based > > servers? > > > > > [..] > > > > No, it's not possible. > > Would it be a big (api)

Nginx upstream https not proxing other pages(?)

2016-06-23 Thread romkaltu
Having odd situation, even don't know how to search in google, how to describe it...Anyway I'm using Nginx and proxy'ing https traffic to upstream server. Everything is fine with http (with others domains) but can't get it to work with https... Here is my nginx config upstream umarket { server 19

Re: nginx core dump explodes

2016-06-23 Thread martinproinity
Wow, that was fast, thanks :) I'm doing tests now with the h2 fix. It looks promising so far. I will continue to run various test to see if there are scenarios that trigger an open socket leak. - At which point in the debug log did you know there is something going wrong? - Is there an explanatio

Re: Enable HTTP2 in one of several name-based servers

2016-06-23 Thread itpp2012
Valentin V. Bartenev Wrote: --- > > Is it possible to enable http2 in only one of several name-based > servers? > > > [..] > > No, it's not possible. Would it be a big (api) change to add a server block session flag? ngx_http_v2_init(ngx_event

Dynamic Cert/Key Lookup

2016-06-23 Thread Moritz Machner
Hello, is it possible to dynamical get an cert/key from an database or an script for SNI? I want to dynamical add new domains with certs for an web app without changing the config oder restarting nginx: 1. get SNI request for domain example342343.com 2. ask mysql

Re: limit_conn is not limiting the number of connections in my use case

2016-06-23 Thread Chuanwen Chen
try this one plz https://github.com/cfsego/nginx-limit-upstream On Sun, Jun 19, 2016 at 6:41 AM, Valentin V. Bartenev wrote: > On Saturday 18 June 2016 11:49:16 matt_l wrote: > > Hello, > > > > I have a hard time understanding limit_conn > > > > My NGINX has the configuration below. I would exp