title: Gitlab unicorn webserver either does not listen or reply on 8080
body: <p>GitLab can be started and shows as running. When running curl git.myserver.com, this fails with HTTP 503. No interesting entries in the unicorn.stderr.log or unicorn.stdout.log.</p>
  
  <p>Versions:</p>
  
  <ul>
  <li>GitLab 6.5.1</li>
  <li>Apache 2.4.6</li>
  <li>Ubuntu 13.10</li>
  </ul>
  
  <p>sites-available/git.myserver.com:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerName git.myserver.com
  
    DocumentRoot /home/git/gitlab/public
  
    &lt;Directory /home/git/gitlab/public&gt;
      AllowOverride All
      Options -MultiViews
    &lt;/Directory&gt;
  
    ProxyPass /uploads !
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
    ProxyPreserveHost on
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>config/unicorn.rb:</p>
  
  <pre class="lang-ruby prettyprint-override"><code>worker_processes 2
  listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog =&gt; 64
  listen "127.0.0.1:8080", :tcp_nopush =&gt; true
  timeout 900
  </code></pre>
  
  <p>config/gitlab.yml:</p>
  
  <pre class="lang-yml prettyprint-override"><code>gitlab:
    ## Web server settings
    host: git.myserver.com
    port: 80
    https: false
  </code></pre>
  
  <p>Apache access log file:</p>
  
  <pre><code>SOMEIPADDRESS - - [17/Feb/2014:20:25:20 +0000] "GET / HTTP/1.1" 503 566 "-" "curl/7.32.0"
  </code></pre>
  
  <p>Apache error log file:</p>
  
  <pre><code>[Mon Feb 17 20:25:08.919614 2014] [proxy_http:error] [pid 1321:tid 139972136904448] [client SOMEIPADDRESS:48578] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
  [Mon Feb 17 20:25:20.114281 2014] [proxy:error] [pid 2092:tid 140263968208640] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed
  [Mon Feb 17 20:25:20.114353 2014] [proxy:error] [pid 2092:tid 140263968208640] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 60s
  [Mon Feb 17 20:25:20.114364 2014] [proxy_http:error] [pid 2092:tid 140263968208640] [client SOMEIPADDRESS:48580] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
  </code></pre>