I am trying to make nginx only&nbsp;accessible&nbsp;by localhost:8080<div><br></div><div>i have tried doing</div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">server {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><span class="Apple-tab-span" style="white-space:pre">        </span>listen&nbsp;&nbsp;<a href="http://127.0.0.1:8080">127.0.0.1:8080</a>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">&nbsp; &nbsp; &nbsp; &nbsp; server_name&nbsp; _;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">...</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">
<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">however it still accepts requests from external ip&#39;s</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">
how can i stop this?</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">i have also tried</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">
allow 127.0.0.1;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">deny all;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">
but this seems to deny localhost as well</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">running latest stable 0.6</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">
<br></p></div>