Welcome! Log In Create A New Profile

Advanced

Re: ab testing

agentzh
April 18, 2011 01:10AM
On Fri, Apr 8, 2011 at 6:33 AM, Jonathan Leibiusky <ionathan@gmail.com> wrote:
> hi! first I wanted to say that nginx is a great product!
> I am trying to use it to route my traffic with several different rules. This
> way I can do ab testing.
> My rules use different inputs, like http headers and uri of the request.
> I am using right now the location block with regex. But when I need to do
> something more complex (like matching the query string and http_method) I
> can't find a way to do it as it seems like nginx doesn't have a rich
> programming language, which is reasonable. But I am sure there are ways to
> do what I want, like:
>

I'd recommend you use ngx_lua's rewrite_by_lua or access_by_lua
directives to code up such complicated business logic. See

http://github.com/chaoslawful/lua-nginx-module

for details.

Cheers,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

ab testing

Jonathan Leibiusky April 07, 2011 06:34PM

Re: ab testing

Bdfy April 07, 2011 07:44PM

Re: ab testing

Jonathan Leibiusky April 07, 2011 07:52PM

Re[2]: ab testing

Bdfy April 08, 2011 05:02AM

Re: ab testing

agentzh April 18, 2011 01:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready