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

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

nginx啟動報 host not found in upstream

nginx啟動報 host not found in upstream

ibeautiful 2018-08-23 20:58:47
nginx proxy_pass命令 地址為域名時, nginx啟動報 host not found in upstream我想訪問本地網站的指定uri時,實際訪問的是另一網站,于是使用了nginx作為代理nginx相關配置如下server {listen 80; server_name www.example.com; ..... location /foo/ {     proxy_store off;     proxy_redirect off;     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;     proxy_set_header X-Real-IP $remote_addr;     proxy_set_header Referer 'no-referrer-when-downgrade';     proxy_set_header User-Agent 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebkit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36';     proxy_pass https://api.example.com/foo/; }}nginx 啟動時報錯 host not found in upstream 'api.example.com'
查看完整描述

2 回答

  • 2 回答
  • 0 關注
  • 7940 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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