1
私はそのURIを介して提供する変数htmlファイルをアーカイブしたい、以下は私の設定です。nginxは場所から複数のインデックスファイルを配信します
server {
listen 8888;
server_name localhost;
location/{
root html/test
index foo.html
}
location /another {
root html/test
index bar.html
}
}
私はlocalhost:8888/another
の要求はその後、私のテストディレクトリに存在bar.html
を応答しますが、私は失敗しています:(
は、どのように私は設定上の修正ができ、感謝のお時間。
ご返信ありがとうございます。 –