Freebsd/jail: nginx ignores IP in listen directive

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

FreeBSD 8.3/amd64
nginx 1.2.1

default config, but listen is:

server {
    listen       ip_addr_of_jail:80;


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

Why nginx listens localhost?

I found something similar to this here:

server {
      listen 80;
      allow         ip_addr_of_jail;
      deny   all;

isn't works too.

Thanks for help.

Posted at Nginx Forum:,227381,227381#msg-227381

More information about the nginx mailing list