2016-09-13 12 views
1

何が問題なのか分かりません。ログには何の警告も出ません。 Iこの How to exclude specific subdomains server_name in nginx configurationNginxのサブドメインが動作しない

と同様の設定をした私は、私はそれを

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.config

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

をチェックするpingを使用していus.example.ioサブドメインを作成したいですnginxとは関係ありません。このエラーは、ドメインのDNSレコードを構成していないことを示しています。

関連する問題