<div dir="ltr">Hey Piotr,<div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 5, 2014 at 2:21 PM, Piotr Sikora <span dir="ltr"><<a href="mailto:piotr@cloudflare.com" target="_blank">piotr@cloudflare.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><br>
</div>What's wrong with "hash" [1]?<br>
<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[1] <a href="http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash" target="_blank">http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash</a><br>
<br></blockquote><div><br></div><div><br></div><div>As mentioned in the syntax at above link:-</div><div><br></div><table cellspacing="0" style="color:rgb(0,0,0);font-family:Georgia,serif;font-size:medium"><tbody><tr><th style="padding-left:0px;padding-right:0.5em;vertical-align:baseline;font-weight:normal">
Syntax:</th><td style="vertical-align:baseline"><code><strong>hash</strong> <code><i>key</i></code> [<code>consistent</code>];</code><br></td></tr><tr><th style="padding-left:0px;padding-right:0.5em;vertical-align:baseline;font-weight:normal">
Default:</th><td style="vertical-align:baseline">—</td></tr><tr><th style="padding-left:0px;padding-right:0.5em;vertical-align:baseline;font-weight:normal">Context:</th><td style="vertical-align:baseline"><code>upstream<br>
<br><br>In my scenario i have to fetch key out of uri and then need to hash that to identify the backend server.<br><br>Basically i need to fetch the key out of uri during run time.<br><br>Can you please help in knowing how can i do that?<br>
<br>Thanks,<br>Panky</code></td></tr></tbody></table><div> </div></div></div></div></div>