make nginx only listen to localhost

Gendouki Office office at
Sat Feb 21 12:54:05 MSK 2009

I am trying to make nginx only accessible by localhost:8080
i have tried doing

server {


        server_name  _;


however it still accepts requests from external ip's

how can i stop this?

i have also tried


deny all;

but this seems to deny localhost as well

running latest stable 0.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list