要使用Nginx下的泛域名支持,必须在编译 Nginx的时候加上 –with-http_sub_module
然后使用
1 2 3 4 5
server { listen 80; server_name _; ..... }