title: How to setup gitblit in windows
body: <p>We need GIT server in our local server. After searched on the internet, we decided to use <code>Gitblit</code> which is easy to install. </p>
  
  <p>But we have problems when we want to access the <code>Gitblit</code> from other machines. As the setup documents mentioned in the <strong>Creating your own Self-Signed Certificate</strong>', we should '<strong>Set your hostname into the HOSTNAME variable.</strong> Here is my makekeystore.cmd file.</p>
  
  <pre><code>@SET HOSTNAME=my-server-ip&lt;br/&gt;
  @del keystore&lt;br/&gt;
  @java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.MakeCertificate --hostname %HOSTNAME% --subject "CN=%HOSTNAME%, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"
  </code></pre>
  
  <p>And we have update the gitblit.properties as followed</p>
  
  <pre><code>server.httpBindInterface = my server ip
  server.httpsBindInterface = my server ip
  server.httpPort = 9090
  server.httpsPort = 9443
  </code></pre>
  
  <p>After this settings, we still can't access the Gitblit. When we input the http: <code>my-server-ip:9090</code> the page can't be opened.</p>
  
  <p>If we change all this values back to localhost and input http: //localhost:9090, it works.</p>
  
  <p>So is there anyone know how to setup Gitblit, I have read the official document many times, but no results. Who can give me a simple?</p>
  
  <p>Thanks so much! :)</p>