hi! first I wanted to say that nginx is a great product!<br>I am trying to use it to route my traffic with several different rules. This way I can do ab testing.<br>My rules use different inputs, like http headers and uri of the request.<br>
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&#39;t find a way to do it as it seems like nginx doesn&#39;t have a rich programming language, which is reasonable. But I am sure there are ways to do what I want, like:<br>
<br>location ~ /items.* {<br>  if ($query_string ~ .*&amp;ids=.* &amp;&amp; $request_method = GET) {<br>    proxy_pass pool_a;<br>  }<br>  proxy_pass pool_b;<br>}<br><br>this is just an example, my rules can get more complex. what would be the recommended way to address this?<br>
<br>thanks!<br><br>jonathan<br>