<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

You think in a backward logic. Try a forward logic: what should be done for</blockquote><div><br></div><div>Agree with this! </div><div><br></div>As a general rules, when writing nginx config, we better think from <b>scratch</b>. <div>

It happened to me that I came across some very complex apache rules and ended up sitting idle because I couldn&#39;t find their direct conversion in nginx.</div><div>But then one day, I just analyzed input used and output produced by apache rules and in few hours I solved that problem is myself.</div>

<div><br></div><div>Switching from apache to nginx is as complex as switching form windows to linux/mac.</div><div>If you start solving any problem with old knowledge you will always find things difficult.  ;-)</div><div>

<br></div><div>-Rahul</div><div><br></div>