2011年3月10日星期四

Re: virtualhosts and listen (Listen to all, handle some)

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


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论