How to configure Nginx behind a corporate proxy

Viewed 15080

Is there an equivalent of apache's ProxyRemote directive for NginX?

So the scenario is I am behind a corporate proxy and I want to do proxy passes for various services with NginX. I would do it in Apache with the following:

ProxyPass /localStackOverflow/ https://stackoverflow.com/

ProxyPassReverse /localStackOverflow/ https://stackoverflow.com/

ProxyRemote https://stackoverflow.com/ http://(my corporate proxy IP)

I know I need the proxy_pass directive in NginX but can't find what I would use for the ProxyRemote.

Thanks

2 Answers
Related