nginx を使用して img を取得しようとしています。私のnginx設定はここにあります: listen 80; サーバー名 *.test.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://test_com;
}
location ^~ /img {
root /data/img;
}
test.html ファイルを /data/img dir に配置しましたが、 http://www.test.com/img/test.htmlをリクエストすると、404 が発生しました
私の設定ファイルに何か問題がありますか?
ありがとう:)