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

Using http_limit_conn with a custom variable

2013-05-21 Thread Kevin Burke
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 the zone does not overflow with illegitimate values. Ideally we'd want to do somethi