Freebsd/jail: nginx ignores IP in listen directive

zgen nginx-forum at nginx.us
Sat Jun 9 10:25:55 UTC 2012


FreeBSD 8.3/amd64
nginx 1.2.1
jail

default config, but listen is:

server {
    listen       ip_addr_of_jail:80;
...
}

but 

$ telnet 127.0.0.1 80 
gets answer from nginx. If I remark this listen directive - nginx isn't
answer.

Why nginx listens localhost?

I found something similar to this here:

http://mailman.nginx.org/pipermail/nginx/2009-February/009947.html

but 
server {
      listen 80;
      allow         ip_addr_of_jail;
      deny   all;
...
}

isn't works too.

Thanks for help.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,227381,227381#msg-227381



More information about the nginx mailing list