virtualhosts and listen (Listen to all, handle some)

pepejose nginx-forum at nginx.us
Thu Mar 10 12:24:36 MSK 2011


This makes it valid? why wildcard *: 80 not working properly?
thanks!!!!!

server {
listen 127.0.0.1:80 default_server;
listen 192.168.1.1:80 default_server;
listen public_ip:80 default_server;

server_name _;
return 444;
}

server {
listen 192.168.1.1:80;

server_name phpmyadmin;
}

server {
listen 127.0.0.1:80;
listen 192.168.1.1:80;
listen public_ip:80;

server_name www.site.com;
}

server {
listen 127.0.0.1:80;

server_name bots;
}

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




More information about the nginx mailing list