nginx反向代理配置
server { listen 8081; //代理后的端口 server_name localhost;//代理后的地址 //代理的接口的关键名 location ~/api/issue-business-server{ proxy_pass http://192.168.110.39:1000;//代理前的地址 index index.html index.htm; } }
积累小的知识,才能成就大的智慧,希望网上少一些复制多一些原创有用的答案
server { listen 8081; //代理后的端口 server_name localhost;//代理后的地址 //代理的接口的关键名 location ~/api/issue-business-server{ proxy_pass http://192.168.110.39:1000;//代理前的地址 index index.html index.htm; } }