no response from server

简介: 今天配置的nginx代理,同事反应在swagger上没响应,出现如下情况本来以为是配置的地址有问题,但是无论换成哪个网卡地址都不行,后面在 “proxy_pass” 下面添加了一个请求头 “proxy_set_header”,如下所示 location /bi/ { proxy_pass http://127.

今天配置的nginx代理,同事反应在swagger上没响应,出现如下情况

no response from server

本来以为是配置的地址有问题,但是无论换成哪个网卡地址都不行,后面在 “proxy_pass” 下面添加了一个请求头 “proxy_set_header”,如下所示

        location /bi/ {
            proxy_pass http://127.0.0.1:9096;
            proxy_set_header Host $host:$server_port;
        }

....

参考资料:

  1. swagger用Nginx反向代理之后,出现no response from server错误的解决办法
目录
相关文章
|
6月前
|
Ubuntu Linux C语言
Could not establish connection to “xx.xx.xx.xx“:The VS Code Server faild to start.【重要解决方案】
Could not establish connection to “xx.xx.xx.xx“:The VS Code Server faild to start.【重要解决方案】
222 0
|
前端开发
64 # 实现一个 http-server
64 # 实现一个 http-server
49 0
|
文字识别
Response from backend server
Response from backend server
78 1
code:503 msg: server is DOWN now, please try again later!
code:503 msg: server is DOWN now, please try again later!
code:503 msg: server is DOWN now, please try again later!
|
JSON 数据安全/隐私保护 数据格式
HTTP Server
HTTP Server
119 0
HTTP Server
|
微服务
SpringCloud - Cannot execute request on any known server
SpringCloud - Cannot execute request on any known server
212 0
SpringCloud - Cannot execute request on any known server
|
Kubernetes 监控 Java
k8s下的eureak服务注册失败(cannot execute request on any known server)解决
k8s下的eureak服务注册失败(cannot execute request on any known server)解决
704 0
|
Python 应用服务中间件 中间件
|
NoSQL 关系型数据库 Shell