例如:http://a.com/b/x.html
请问如何代理 /b/x.html
到服务器本地路径文件夹内的 index.html 呢?
这样配置并不起效,访问出现 404
location ^~ /b/x\.html {
root /data/a/;
}
例如:http://a.com/b/x.html
请问如何代理 /b/x.html
到服务器本地路径文件夹内的 index.html 呢?
这样配置并不起效,访问出现 404
location ^~ /b/x\.html {
root /data/a/;
}
2 回答2.4k 阅读✓ 已解决
1 回答1.8k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
3 回答998 阅读
1 回答716 阅读
560 阅读