VPS侦探论坛

 找回密码
 注册
查看: 3051|回复: 0

nginx配置反向代理出错

[复制链接]
发表于 2018-1-19 09:34:57 | 显示全部楼层 |阅读模式

我把代码以及测试配置出错的图片先放上,见附件

我在server里面加了
server
{
server_name a.xxx.com;
location / {                proxy_pass http://b.xxx.com/;                proxy_redirect off;                proxy_set_header X-Real-IP $remote_addr;                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                }}

我测试了一下该配置,却显示
nginx:[emerg ] host not found in upstream"b.xxx.com".....测试失败,请问什么原因叱

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 17:15 , Processed in 0.025832 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表