一台nginx反向代理,有2个location 代理不同的地址,有一台是静态页面代理,做完之后一台的访问不了问题出现的平台版本及自己尝试过哪些方法相关代码// 请把代码文本粘贴到下方(请勿用图片代替代码)server { listen 8800; server_name localhost; location /rms{ root html; index index.html index.htm; add_header 'Access-Control-Allow-Origin' '*'; add_header Access-Control-Allow-Methods GET,POST,OPTIONS,DELETE; add_header 'Access-Control-Allow-Headers' 'userId,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; proxy_pass http://9.1.8.249:8082/rms ;
} location /rizhiyi/ { root html; alias /; index index.html index.htm; proxy_pass http://9.1.8.76/;
} location ~* ^/(rizhiyi|images|img|javascript|js|css|blog|flash|media|static|api|auth|account|ico)/ { proxy_pass http://9.1.8.76:80;
}
1 回答
- 1 回答
- 0 关注
- 430 浏览
添加回答
举报
0/150
提交
取消