no response from server

The nginx proxy configured today, the colleague responded that the swagger did not respond, and the following situation occurred

no response from server

Originally thought that there was a problem with the configured address, but no matter which network card address was replaced, a request header "proxy_set_header" was added under "proxy_pass", as shown below

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

....

References:

  1. After swagger uses Nginx reverse proxy, the solution to no response from server error

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324774412&siteId=291194637
Recommended