Re: Problem with rewrite regexes when the URL contains a trailing slash (nginx-1.5.0)

2013-05-22 Thread Roberto F.
Hello -- just writing again to say that I did it! I found on the web (just Google) a Cygwin build of nginx and it works perfectly. Thanks for your support! Robertof Il 22/05/2013 21:12, Maxim Dounin ha scritto: Hello! On Wed, May 22, 2013 at 08:40:43PM +0200, Roberto F. wrote: Hello. I'm hav

Re: Problem with rewrite regexes when the URL contains a trailing slash (nginx-1.5.0)

2013-05-22 Thread Roberto F.
Hi, thanks for the fast answer! Yes, I am using nginx on Windows and I didn't know about that restriction. Since the project I'm working on requires that (damned!) final point, do you know a way to overcome this restriction? For example, I thought about cygwin but I'm not sure if it would work.

Re: Problem with rewrite regexes when the URL contains a trailing slash (nginx-1.5.0)

2013-05-22 Thread Maxim Dounin
Hello! On Wed, May 22, 2013 at 08:40:43PM +0200, Roberto F. wrote: > Hello. > I'm having a problem with nginx's rewrite directive. > Basically, when the URL contains a trailing point, it is ignored by > the rewrite regexp. > Let's do an example: > I load http://uri/something. (with the trailing p

Problem with rewrite regexes when the URL contains a trailing slash (nginx-1.5.0)

2013-05-22 Thread Roberto F.
Hello. I'm having a problem with nginx's rewrite directive. Basically, when the URL contains a trailing point, it is ignored by the rewrite regexp. Let's do an example: I load http://uri/something. (with the trailing point). Then, with the rewrite rule: rewrite ^/something\.$ /index.html I sho

Re: Nginx returns HTTP 200 with Content-Length: 0

2013-05-22 Thread Maxim Dounin
Hello! On Tue, May 21, 2013 at 09:56:59PM -0400, apeman wrote: > no, no, no! > Normally, it's not 0, but sometimes, the possibility is 0.07%. It's > absolutely not normal! > [21/May/2013:00:02:56 +0800] "POST /ourservice/api HTTP/1.1" 200 607 27 "-" > "c" "10.23.130.154" > [21/May/2013:00:02:56

Re: Using http_limit_conn with a custom variable

2013-05-22 Thread Kevin Burke
Ah, thanks, map{} is probably the best solution. We got it "working" by using rewrite_by_lua_file, which let us set new headers: # Set an HTTP header that is read by conn_zone rewrite_by_lua_file user.lua; limit_conn_zone $http_user_binary ...; Then in the lua file, add something lik

Re: Using http_limit_conn with a custom variable

2013-05-22 Thread Maxim Dounin
Hello! On Tue, May 21, 2013 at 12:31:05PM -0700, Kevin Burke wrote: > Hi, > We're trying to use the limit_conn_zone directive to throttle incoming > HTTP requests. > > We'd like to throttle based on the http basic auth variable > ($remote_user), however, we must do processing on this value so th

Re: NGINX SE vs. Open Source

2013-05-22 Thread Andrew Alexeev
Hi JackB, On May 22, 2013, at 1:38 PM, JackB wrote: > Hello, > > on your Site (http://nginx.com/products.html) you are comparing NGINX SE > with the Open Source version. The table states "Basic" and "Enhanced" on > many core features of NGINX. The SE/"Enhanced" column offers additional > inform

NGINX SE vs. Open Source

2013-05-22 Thread JackB
Hello, on your Site (http://nginx.com/products.html) you are comparing NGINX SE with the Open Source version. The table states "Basic" and "Enhanced" on many core features of NGINX. The SE/"Enhanced" column offers additional information by hovering with the mouse over the rows. Those additional in