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 0/0/2048 <server ip>.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 </p><br><div class="gmail_quote">On Sat, Feb 21, 2009 at 11:30 PM, Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></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>
> Hrmm, im not sure what im doing wrong then, i am mostly using default<br>
> config, only 1 server {}<br>
><br>
> 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>
><br>
> worker_processes 2;<br>
><br>
> events {<br>
> worker_connections 1024;<br>
> }<br>
><br>
><br>
> http {<br>
><br>
> include mime.types;<br>
> default_type application/octet-stream;<br>
><br>
><br>
> sendfile on;<br>
> #tcp_nopush on;<br>
><br>
> #keepalive_timeout 0;<br>
> keepalive_timeout 65;<br>
><br>
> #gzip on<br>
><br>
> server {<br>
> listen <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a>;<br>
> server_name _;<br>
><br>
> #charset koi8-r;<br>
><br>
> #access_log logs/host.access.log main;<br>
><br>
> location / {<br>
> root /usr/local/www/nginx;<br>
> index index.html index.htm;<br>
><br>
> }<br>
> }<br>
> }<br>
><br>
> On Sat, Feb 21, 2009 at 9:19 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:<br>
><br>
> > On Sat, Feb 21, 2009 at 08:54:05PM +1100, Gendouki Office wrote:<br>
> ><br>
> > > I am trying to make nginx only accessible by localhost:8080<br>
> > > i have tried doing<br>
> > ><br>
> > > server {<br>
> > ><br>
> > > listen <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a>;<br>
> > ><br>
> > > server_name _;<br>
> > ><br>
> > > ...<br>
> > ><br>
> > ><br>
> > > however it still accepts requests from external ip's<br>
> > ><br>
> > ><br>
> > > how can i stop this?<br>
> ><br>
> > This should work.<br>
> > Have you are server{}s in configuration ?<br>
> ><br>
> > > i have also tried<br>
> > ><br>
> > > allow 127.0.0.1;<br>
> > ><br>
> > > deny all;<br>
> ><br>
> > This should work too.<br>
> ><br>
> > > but this seems to deny localhost as well<br>
> > ><br>
> > > running latest stable 0.6<br>
> ><br>
> ><br>
> > --<br>
> > Igor Sysoev<br>
> > <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
> ><br>
> ><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>