2

'm behind my corporate forwarding proxy.

When I test my application locally, for some requests, I want to configure nginx to proxy_pass those requests to some external domain servers.

below is my configuration, while this doesn't work. I'm always getting 502 bad gateway error. so I'm thinking is it due to I'm behind a corporate proxy? How can I configure nginx simply pass the request to the forwarding proxy?

location ~* ^/proxy/(.*) {
    proxy_pass http://services.odata.org/$1$is_args$args;
}

What I want to achieve is: enter image description here

  • What is in the log on the other end? – Anatoly Sep 21 '15 at 9:00
  • @Anatoly what you mean for "the other end"? – Aaron Shen Sep 22 '15 at 1:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.