项目运行在内网,地址是http://192.168.1.150:8080
其中有一个编辑功能的url是http://192.168.1.150:8080/user/edit/20
,
nginx运行在localhost:8080
,
现在想把这个编辑功能的页面映射到本地D:/workspace/html/edit.html
,
即访问 localhost:8080/user/edit/20
时自动映射到本地的D:/workspace/html/edit.html
,
请问niginx的location应该怎么配置?
改host,nginx再转发请求至本地