yes that is correct<div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">netstat -Lan | grep 8080</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">netstat: kvm not available: /dev/mem: No such file or directory</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">tcp4&nbsp; 0/0/2048 &nbsp; &nbsp; &nbsp; &lt;server ip&gt;.8080</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">
server ip is edited out., thank-you for help im going to donate to nginx project now&nbsp;</p><br><div class="gmail_quote">On Sat, Feb 21, 2009 at 11:30 PM, Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">On Sat, Feb 21, 2009 at 10:54:54PM +1100, Gendouki Office wrote:<br>
<br>
&gt; Hrmm, im not sure what im doing wrong then, i am mostly using default<br>
&gt; config, only 1 server {}<br>
&gt;<br>
&gt; stopping and starting using /usr/local/etc/rc.d/nginx stop<br>
<br>
</div>It seems you use FreeBSD. What does<br>
<br>
netstat -Lan | grep 8080<br>
<br>
show ?<br>
<div><div></div><div class="Wj3C7c"><br>
&gt;<br>
&gt; worker_processes &nbsp;2;<br>
&gt;<br>
&gt; events {<br>
&gt; &nbsp; &nbsp; worker_connections &nbsp;1024;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; http {<br>
&gt;<br>
&gt; &nbsp; &nbsp; include &nbsp; &nbsp; &nbsp; mime.types;<br>
&gt; &nbsp; &nbsp; default_type &nbsp;application/octet-stream;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; sendfile &nbsp; &nbsp; &nbsp; &nbsp;on;<br>
&gt; &nbsp; &nbsp; #tcp_nopush &nbsp; &nbsp; on;<br>
&gt;<br>
&gt; &nbsp; &nbsp; #keepalive_timeout &nbsp;0;<br>
&gt; &nbsp; &nbsp; keepalive_timeout &nbsp;65;<br>
&gt;<br>
&gt; &nbsp; &nbsp; #gzip &nbsp;on<br>
&gt;<br>
&gt; &nbsp; &nbsp; server {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp;<a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a>;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;_;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; #charset koi8-r;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; #access_log &nbsp;logs/host.access.log &nbsp;main;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; location / {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root &nbsp; /usr/local/www/nginx;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; index &nbsp;index.html index.htm;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; }<br>
&gt; }<br>
&gt;<br>
&gt; On Sat, Feb 21, 2009 at 9:19 PM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Sat, Feb 21, 2009 at 08:54:05PM +1100, Gendouki Office wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; I am trying to make nginx only accessible by localhost:8080<br>
&gt; &gt; &gt; i have tried doing<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; server {<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; listen &nbsp;<a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a>;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;_;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; however it still accepts requests from external ip&#39;s<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; how can i stop this?<br>
&gt; &gt;<br>
&gt; &gt; This should work.<br>
&gt; &gt; Have you are server{}s in configuration ?<br>
&gt; &gt;<br>
&gt; &gt; &gt; i have also tried<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; allow 127.0.0.1;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; deny all;<br>
&gt; &gt;<br>
&gt; &gt; This should work too.<br>
&gt; &gt;<br>
&gt; &gt; &gt; but this seems to deny localhost as well<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; running latest stable 0.6<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Igor Sysoev<br>
&gt; &gt; <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div></div>--<br>
<div><div></div><div class="Wj3C7c">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br></div>