一? 實操步驟
1.1 架構圖?
?1.2 配置原則
匹配準則:
當proxy_pass代理地址端口后有目錄(包括 / 和/xxx),相當于是絕對根路徑,則?nginx?不會把?location?中匹配的路徑部分代理走;
當proxy_pass代理地址端口后無任何內容,可以理解為相對路徑,則nginx會把location中匹配的路徑部分代理走;
http://localhost:9001/admin/acl/index/login?=》http://localhost:8201/admin/acl/index/login
http://localhost:9001/admin/sys/ware/findAllList??=》http://localhost:8202/admin/sys/ware/findAllList
https://blog.csdn.net/u011066470/article/details/126275847