我正在尝试使用 nginx 获取 img。我的 nginx 配置在这里:听 80;server_name *.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 目录。但是当我请求http://www.test.com/img/test.html时,发生了 404
我的配置文件有问题吗?
谢谢:)