修改配置文件实现功能
1、双击打开配置文件
2、添加下述代码
location /api {
proxy_pass http://172.18.181.12:8080/hky-wlwssjhpt;
}
location /api:代理路径识别,也就是url中出现/api代理路径
proxy_pass http://172.18.181.12:8080/hky-wlwssjhpt:要代理的路径
1、双击打开配置文件
2、添加下述代码
location /api {
proxy_pass http://172.18.181.12:8080/hky-wlwssjhpt;
}
location /api:代理路径识别,也就是url中出现/api代理路径
proxy_pass http://172.18.181.12:8080/hky-wlwssjhpt:要代理的路径