2016-09-13 149 views
1

我不知道什么是错的。我在日志中没有收到任何警告。我有类似的配置这个 How to exclude specific subdomains server_name in nginx configurationNginx子域名不能正常工作

我想us.example.io我使用ping检查它

ping us.example.io 
ping: cannot resolve us.example.io: Unknown host 

nginx.config

server { 
    server_name *. us.example.io us.example.io; 
    listen 80; 
    root /usr/share/nginx/html/bint; 
    index index.html index.htm index.php; 
    location/{ 
     try_files $uri $uri/ /index.html; 
    } 
    } 

    server { 
    server_name us.example.io; 
    listen 80; 
    return http://www.google.com; 
    } 

回答

3

问题创建子域与nginx无关。该错误表明您尚未配置该域的DNS记录。