<div dir="ltr">Hi,<div><br></div><div>Just have  a doubt in map directive</div><div><br></div><div><div>map $http_user_agent $upstreamname {</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">           </span>default<span class="gmail-Apple-tab-span" style="white-space:pre">                       desktop</span>;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">               </span>~(iPhone|Android)<span class="gmail-Apple-tab-span" style="white-space:pre">     mobile</span>;</div><div>}</div><div><br></div><div>is correct ?</div><div><br></div><div>########################</div><div><br></div><div>or does the regex need to fully match the variable?</div><div><br></div><div><div>map $http_user_agent $upstreamname {</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span>default<span class="gmail-Apple-tab-span" style="white-space:pre">                       desktop</span>;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">               </span>~*.*Android.*  <span class="gmail-Apple-tab-span" style="white-space:pre">      mobile</span>;</div></div><div>                ~*.*iPhone.*     mobile;</div><div>}</div><div><br></div><div><br></div><div><br></div><div>                </div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><b>Anoop P Alias</b> <div><br></div></div></div></div>
</div></div>