添加server server{ listen 80 default_server; server_name _; return 500;}或者server { listen 80 default_server; server_name _; rewrite ^(.*) http://www. exchangecn .net permanent;}