<div dir="ltr">Perhaps this didnt work for you because you have <div><br></div><div>root  /var/www/example/;<br></div><div><br></div><div>in the php location . Move up the root in location / to the server {}  level and delete the root from php location . This is also the best approach as per nginX docs</div>
<div class="gmail_extra"><div class="gmail_quote"><br></div><br clear="all"><div><br></div>-- <br><b>Anoop P Alias</b> <div><a href="http://gnusys.net" target="_blank">GNUSYS</a></div>
</div></div>