title: Is there anyway to use http proxy in nginx?
body: <p>In java we can use http proxy like this:</p>
  
  <pre><code>System.setProperty ("proxySet" , "true" );
  System.setProperty("proxyHost", "proxy.xxx.com");
  System.setProperty("proxyPort", "8080");
  System.setProperty("proxyUser", "xxx");
  System.setProperty("proxyPassword", "xxx");
  </code></pre>
  
  <p>My nginx can't access internet dircetly, but I have a http proxy server;</p>
  
  <p>So, is there anyway to use http proxy in nginx?</p>