Firstsawyou commented on issue #3284:
URL: https://github.com/apache/apisix/issues/3284#issuecomment-760905857


   > @Firstsawyou
   > Maybe you can use `curl http://127.0.0.1:9080` instead of `curl 
http://127.0.0.1:9080/hello`?
   
   I tried it and it didn't reproduce the problem.
   @dickens7  Please confirm again whether this problem still exists.
   
   ```
   $ curl http://127.0.0.1:9080
   <html>
   <head><title>502 Bad Gateway</title></head>
   <body>
   <center><h1>502 Bad Gateway</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ```
   
   error log:
   
   ```
   2021/01/15 20:04:10 [error] 24857#24857: *21060 connect() failed (111: 
Connection refused) while connecting to upstream, client: 127.0.0.1, server: , 
request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:80/";, host: 
"127.0.0.1:9080"
   2021/01/15 20:04:11 [error] 24856#24856: *21090 connect() failed (111: 
Connection refused) while connecting to upstream, client: 127.0.0.1, server: , 
request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:80/";, host: 
"127.0.0.1:9080"
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to