title: Configure Nginx proxy for bitbucket
body: <p>I want to configure a Nginx as a proxy server as following:</p>
  
  <pre><code>(1) Client PC &lt;-----&gt; (2)Nginx &lt;------&gt; (3)Bitbucket 
  </code></pre>
  
  <p>In that:</p>
  
  <ul>
  <li><p><code>(3)</code> Bitbucket: I have created a repository, I can work with it via either ssh or https.  </p>
  
  <ul>
  <li>ssh: <code>git@bitbucket.org:myname/myproject.git</code>  </li>
  <li>https: <code>https://myname@bitbucket.org/myname/myproject.git</code></li>
  </ul></li>
  <li><p><code>(1)</code> Client PC: from client I do not want to use directly domain bitbucket.org, instead of, I want to use address of Nginx server to conceal bitbucket.org domain. So I used to use Nginx.</p></li>
  <li><p><code>(2)</code> Nginx: I already installed and configured, It works well for http web.  </p></li>
  </ul>
  
  <p>My problem is I do not know how to configure Nginx to work with git bitbucket.<br>
  Please help me some suggestion.</p>