#公众号安全文件
location /MP_verify_fa2aZsc6jPSO3SXC.txt {
alias /www/wwwroot/dhu/MP_verify_fa2aZsc6jPSO3SXC.txt;
}
#订货系统
location /dh/app/ {
proxy_pass http://localhost:8080/beiyao/dh/app/;
}
location /dh/ {
index index.html index.htm;
try_files $uri $uri/ /dh/index.html;
}
#核销系统
location /byjhx/ {
index index.html index.htm;
try_files $uri $uri/ /dh/index.html;
}
location /byjhx/api/ {
proxy_pass http://localhost:8080/;
#启用支持websocket连接
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Nginx配置代理
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 一、Axios 二、Vue - vue.cofig.js 文件配置开发环境代理 三、Nginx 四、请求Demo