Re: Nginx lua capture_multi fire and forget

2013-10-25 Thread Yichun Zhang (agentzh)
Hello! On Wed, Oct 23, 2013 at 2:46 AM, PieterVI wrote: > Is there a way to have the lua module launch the requests without waiting > for the response? > It should fire the requests and continue directly afterwards and forget > about the response handling. > I could try and modify the lua module,

Re: Too many open files and unix

2013-10-25 Thread Axel
Hello Aron, Am 25.10.2013 18:35, schrieb Aron: Hello, Can you tell the output from this command ps -eLF |grep www-data |wc -l ? Yes, it's 13 And What does /proc/sys/fs/nr_open output ? 1048576 Thanks, Axel ___ nginx mailing list nginx@nginx.org

Re: limit_req_zone: How to apply only to some requests containing some string in the URL?

2013-10-25 Thread Brian08275660
I read some information about REGEX and think I found the way to express "X or x, preceded with something before": ~*(.*)X I think that the first two characters mean "match anycase", then the "(.*)" would mean "any quantity of characters" and the "X" would mean that specific letter. Am I right?

Re: Passing / denying PHP requests

2013-10-25 Thread Paul N. Pace
Hi Francis, and again thanks for your help in this matter. I would have responded sooner but the day I was planning to resolve this issue I had an unseasonably long power outage. On Wed, Oct 23, 2013 at 11:41 AM, Francis Daly wrote: > On Wed, Oct 23, 2013 at 11:32:33AM -0700, Paul N. Pace wrote:

Re: limit_req_zone: How to apply only to some requests containing some string in the URL?

2013-10-25 Thread Brian08275660
Hi Payam, I dont have that option. My users are not using real browsers, but objects that model an HTTP client. Probably these object can't inject cookies. And I don't want to ask them to so so, it would make things more complex to them, whereas including an extra parameter in the query string is

Re: limit_req_zone: How to apply only to some requests containing some string in the URL?

2013-10-25 Thread Brian08275660
Hi Jader, Thanks a lot, that looks like a nice solution! I barely know how to build regex expressions, and I'm too lazy to learn just right now. Just a final question: Actually they will send me any value from 2X to 25X, but that could even increase to more than 25. I would like a simpler and mor

Re: limit_req_zone: How to apply only to some requests containing some string in the URL?

2013-10-25 Thread Payam Chychi
Maybe ive misunderstood but cant you very simply do this by injecting a cookie on the origina req page and then have nginx match, count it and apply rates? Or maybe im comicating it... If even possible -- Payam Chychi Network Engineer / Security Specialist On Tuesday, October 22, 2013 at 8:4

help in nginx in the my paper

2013-10-25 Thread plan_da...@yahoo.co.id
when the instal in nginx in to my paper Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244126,244126#msg-244126 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: limit_req_zone: How to apply only to some requests containing some string in the URL?

2013-10-25 Thread Jader H. Silva
Hi, you could use a map that matches all cases to empty string and default value as non-empty map $arg_capacity $my_default_key{~*([2-9]|10)X ""; default $http_x_forwarded_for;} If it matches 2X to 10X, $my_default_key will be empty. Cheers Jader H. Silva 2013/10/25 Brian08275660 > Hi Franc

Re: limit_req_zone: How to apply only to some requests containing some string in the URL?

2013-10-25 Thread Brian08275660
Hi Francis, Now I need to create a limit that acts if the parameter ("capacity") is empty (not provided). How do I do that? I can't find how to, at least not using "map". (If provided, the other rules will evaluate it and one of them will act according to the value). Thanks in advanced! Posted a

Re: Too many open files and unix

2013-10-25 Thread Aron
Hello, Can you tell the output from this command ps -eLF |grep www-data |wc -l ? And What does /proc/sys/fs/nr_open output ?   Regards Aron From: Axel To: nginx@nginx.org Sent: Friday, October 25, 2013 5:37 PM Subject: Too many open files and unix Hello,

Re: Handler invokation after upstream server being picked

2013-10-25 Thread Maxim Dounin
Hello! On Fri, Oct 25, 2013 at 12:30:34PM +0200, Jan Algermissen wrote: > Hi, > > I am writing a module that needs to add/change the HTTP > Authorization server for an upstream request. > > Since I am using a signature based authentication scheme where > the signature base string includes the

Re: performance testing

2013-10-25 Thread youreright
And what were you up to with ab? Can you check both real quick? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244110,244112#msg-244112 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: performance testing

2013-10-25 Thread Geoffrey Hartz
AB is not good enough for testing... Use http://redmine.lighttpd.net/projects/weighttp/wiki on debian-like install "libevent-dev" AB didn't use multicore/thread.. With weighttp I was able to hit 100 000q/s 2013/10/25 youreright : > I'm getting under 5000 requests per second hitting just the ng

performance testing

2013-10-25 Thread youreright
I'm getting under 5000 requests per second hitting just the nginx welcome page on a default configuration. Any tips to improve this please? setup is: == macbook pro retina 10.8.3 RoverMR:webserver rover$ nginx -v nginx version: nginx/1.4.3 == Running ab test == RoverMR:webserver rover$ ab -n 10

Re: proxy pass with rewrite

2013-10-25 Thread Francis Daly
On Fri, Oct 25, 2013 at 01:25:10PM +0200, Philipp Kraus wrote: > Am 25.10.2013 um 10:01 schrieb Francis Daly : Hi there, > > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy > > looks like it may have useful information. > > I have used this how to, but I cannot

Re: proxy pass with rewrite

2013-10-25 Thread Philipp Kraus
Hi, Am 25.10.2013 um 10:01 schrieb Francis Daly : > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy > looks like it may have useful information. I have used this how to, but I cannot create a working solution > Fix jenkins so that it knows it is below /jenkins/,

help: How to cache video in nginx when dynamic link request

2013-10-25 Thread Yuanjianyong (George)
Hi, everybody, Please give me a hand. In VOD system, Nginx is reverse proxy and Lighttpd is application server with video files. And getting video files is the type "play.jsp?videoid=123456". Now , I want to cache video files in Nginx server from dynamic link with "?". How to define the Nginx

Too many open files and unix

2013-10-25 Thread Axel
Hello, today I had too many open files and I need some advice to investigate in this issue. I googled around and found a lot information how to solve this issue (e.g. http://forum.nginx.org/read.php?2,234191,234191) I finally was able to get rid of the error. But I wondered about nginx beha

Handler invokation after upstream server being picked

2013-10-25 Thread Jan Algermissen
Hi, I am writing a module that needs to add/change the HTTP Authorization server for an upstream request. Since I am using a signature based authentication scheme where the signature base string includes the request host and port the header can only be added *after* the upstream module has det

Re: proxy_pass Cannot GET

2013-10-25 Thread youreright
Nevermind, solved. I was looking at my httpd.conf instead of nginx.conf and then was able to fix from there. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244100,244103#msg-244103 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.o

Re: proxy_pass Cannot GET

2013-10-25 Thread youreright
sorry, copy/paste error: I have this: #proxy_pass http://localhost:2345/; #proxy_pass_reverse http://localhost:2345/; location /nodejs { proxy_pass http://localhost:2345/; proxy_pass_reverse http://localhost:2345/; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244100,244102

Re: proxy_pass Cannot GET

2013-10-25 Thread Jonathan Matthews
On 25 Oct 2013 10:47, "youreright" wrote: > > nginx is working, but, when doing proxy_pass, gives me: Cannot GET /nodejs > > here are the lines I've added to nginx.conf > > ProxyPass nodejs localhost:2345 > ProxyPassReverse nodejs localhost:2345 You need to read the documentation, as those aren't

proxy_pass Cannot GET

2013-10-25 Thread youreright
nginx is working, but, when doing proxy_pass, gives me: Cannot GET /nodejs here are the lines I've added to nginx.conf ProxyPass nodejs localhost:2345 ProxyPassReverse nodejs localhost:2345 2345 is where my node server is listening I'm pointing chrome browser here: http://localhost/nodejs

Re: proxy pass with rewrite

2013-10-25 Thread Francis Daly
On Fri, Oct 25, 2013 at 07:57:01AM +0200, Philipp Kraus wrote: Hi there, > I would like to configure ngix with jenkins, nginx should be a proxy for the > jenkins instance. I have configuration the proxy pass options in this way: > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+N