nginxサブドメインの構成についてSOについていくつか質問がありますが、私のものとまったく同じものは見つかりませんでした。
some.example.com
組織の上位レベルのネット管理者から仮想ホストを取得したとexample.com
します。some.example.com
プライマリサイトとして使用foo.some.example.com
しbar.some.example.com
、補助的な使用(プロキシなど)に使用したい。私はこの単純な構成を試し、それを下に置きましたsites-enabled
が、機能しませんでした:
server {
listen 80;
server_name some.example.com;
root /home/me/public_html/some;
index index.html index.htm;
}
server {
listen 80;
server_name foo.some.example.com;
root /home/me/public_html/foo;
index index.html index.htm;
}
server {
listen 80;
server_name bar.some.example.com;
root /home/me/public_html/bar;
index index.html index.htm;
}
この設定some.example.com
では正常に機能しますが、他の2つのブラウザではそれを返しcould not find foo.some.example.com
ます。私はそれをubuntuサーバーで実行しています。
この構成に何か問題がありますか?それとも、より高いレベルのネット管理者に相談する必要がありますか(作成foo.some.example.com
しbar.some.example.com
て登録する)?