nginx配置反向代理出错
我把代码以及测试配置出错的图片先放上,见附件我在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: host not found in upstream"b.xxx.com".....测试失败,请问什么原因叱
页:
[1]