MrLightSpeed0 opened a new issue #2280:
URL: https://github.com/apache/apisix/issues/2280


   ### Issue description
   Hello,
   
   I was able to start apisix and I am following this 
[page](https://github.com/apache/apisix/blob/master/doc/getting-started.md) to 
get started: 
   I was able to execute this and get answer:
   `$ curl "http://127.0.0.1:9080/apisix/admin/services/"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'`
   then I added the upstream and route as instructed to try to make a call to 
httpbin.org
   however, when I ran: `curl -i -X GET 
"http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2"; -H "Host: httpbin.org"` I got 
502 Bad Gateway.  The log says following:
   `2020/09/22 21:03:30 [error] 13826#13826: *3880616 connect() failed (101: 
Network is unreachable) while connecting to upstream, client: 127.0.0.1, 
server: , request: "GET /get?foo1=bar1&foo2=bar2 HTTP/1.1", upstream: 
"https://34.194.129.11:443/get?foo1=bar1&foo2=bar2";, host: "httpbin.org"`
   then I knew that the traffic was blocked by the company proxy/firewall. 
However, I did set "http_proxy" and "https_proxy" etc. because I could curl -k 
https://httpbin.org directly and get results. somehow, the apisix doesn't honor 
the system setting. My question here is what do I need to do to config apisix 
to recognize the "http_proxy" and "no_proxy" settings? Thank you in advance!
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS: Ubuntu 18.04
   


----------------------------------------------------------------
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