亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

問大家一個nginx 反向代理問題

問大家一個nginx 反向代理問題

喵喔喔 2019-03-02 17:58:52
一臺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 關注
  • 447 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號