Re: Whats is the correct message sequence for nginx server?

2013-10-23 Thread Maxim Dounin
Hello! On Wed, Oct 23, 2013 at 02:15:48PM -0400, hemant_psu wrote: > I am running nginx-1.5 server and sending chrome browser simple websocket > request. My nginx server is confgiured with hello module which is supposed > to send "Hello world" in response. > > As per RFC for websocket, a sever

Re: Passing / denying PHP requests

2013-10-23 Thread Francis Daly
On Wed, Oct 23, 2013 at 11:32:33AM -0700, Paul N. Pace wrote: > On Wed, Oct 23, 2013 at 9:49 AM, Francis Daly wrote: Hi there, > "location ~ php$ { deny all; }" does not deny access to any php files, > even when nested in "location ^~ /installdirectory/ {}". The previous > configuration "locatio

Re: Passing / denying PHP requests

2013-10-23 Thread Paul N. Pace
Thank you, Francis. On Wed, Oct 23, 2013 at 9:49 AM, Francis Daly wrote: > If you don't like regex, don't use regex. > > You probably want another location{} to "deny", and that might be > "location ~ php$ {}", or it might be that nested inside > > location ^~ /installdirectory/ {} > > dependin

Whats is the correct message sequence for nginx server?

2013-10-23 Thread hemant_psu
I am running nginx-1.5 server and sending chrome browser simple websocket request. My nginx server is confgiured with hello module which is supposed to send "Hello world" in response. As per RFC for websocket, a sever is supposed to send "switching protocol message "as ACK for connection upgrade

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

2013-10-23 Thread Brian08275660
Thanks a lot Francis! Now I just have to learn how to use the custom variables and the "map" directive. I haven't ever used them before, never needed them. By the way, it will be easier than what I thought. I decided to ask my users to add an extra parameter, something like "&capacity=3X" instead

Re: Passing / denying PHP requests

2013-10-23 Thread Francis Daly
On Wed, Oct 23, 2013 at 07:30:19AM -0700, Paul N. Pace wrote: Hi there, > created the location block, but I'm not so good with regular > expressions and the block is assembled mostly through copy & paste. If you don't like regex, don't use regex. location = /installdirectory/file_a.php {

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

2013-10-23 Thread Francis Daly
On Wed, Oct 23, 2013 at 08:56:33AM -0400, Brian08275660 wrote: Hi there, > Could you please give me an example? A few lines of code would be great! Completely untested, but something like: map $arg_key $key_ends_in_02X { default ""; ~02X$ "A"; } (where "A" might be, for example, $b

Re: NGINX and php-fpm -> HTML runs, php gives 502

2013-10-23 Thread Francis Daly
On Wed, Oct 23, 2013 at 10:13:36AM -0400, timofrenzel wrote: Hi there, > I call on the index.html , everything works . > I call on the index.php , I get back only n 502. When you do curl -i http://devubuntu.loc/index.php what response do you get, and what do the nginx log files say happened?

Passing / denying PHP requests

2013-10-23 Thread Paul N. Pace
Hello- I am trying to allow only the PHP files required for a given PHP package to function correctly, then deny access to all other PHP files to prevent people from snooping on the site's configuration. I have created the location block, but I'm not so good with regular expressions and the block

NGINX and php-fpm -> HTML runs, php gives 502

2013-10-23 Thread timofrenzel
hi, apparently have some problems with it so I am not better . Unfortunately, past attempts have brought nothing to use the information from other posts . And so , I really hope that this one can help ^ ^ So, I have NGINX installed and php - fpm . I call on the index.html , everything works . I c

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

2013-10-23 Thread Brian08275660
Could you please give me an example? A few lines of code would be great! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244015,244035#msg-244035 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Nginx lua capture_multi fire and forget

2013-10-23 Thread PieterVI
Hi all, We're currently using the lua capture_multi to send production request to test systems. And sometimes we also kind of 'fork' these request to multiple test systems. But if one of the test systems is slow to respond the lua code waits till it gets all responses. And this is something we ac

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

2013-10-23 Thread Francis Daly
On Tue, Oct 22, 2013 at 11:42:35PM -0400, Brian08275660 wrote: Hi there, > I'm using the limit_req_zone module. I would like it to act only on some > requests that have a certain string in one variable in the query string of > the URL. > http://api.acme.com/ipgeolocation/locate?key=NANDSBFHGWHWN