2016-09-13 123 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記錄。