title: ISPCONFIG 3 and GITLAB
body: <p>I have my gitlab working locally, but somehow i cannot access it externally. Can't figure out the problem. I'm running Debian 8 system.</p>
  
  <p>Current conf files :</p>
  
  <p>/etc/gitlab/gitlab.rb</p>
  
  <pre><code>gitlab_url = "http://127.0.0.1:9999"
  external_url "http://gitlab.example.ee"
  
  gitlab_rails['gitlab_host'] = "gitlab.example.ee"
  gitlab_rails['gitlab_email_from'] = "gitlab@example.ee"
  gitlab_rails['internal_api_url'] = "http://localhost:9999"
  
  web_server['external_users'] = ['www-data']
  
  unicorn['port'] = "9999"
  nginx['enable'] = false
  </code></pre>
  
  <p>apache vhost (/etc/apache2/sites-available/gitlab.conf)</p>
  
  <pre><code>&lt;VirtualHost *:9999&gt;
  ServerAdmin info@example.ee
  DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
  ServerName gitlab.example.ee
  ServerAlias gitlab.example.ee
  ProxyPreserveHost On
  
  &lt;Location /&gt;
  
      Order deny,allow
      Allow from all
      Options FollowSymLinks
      Require all granted
  
      ProxyPassReverse http://localhost:9999/
      ProxyPassReverse http://gitlab.example.ee/
  &lt;/Location&gt;
  
  RewriteEngine on
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule .* http://localhost:9999%{REQUEST_URI} [P,QSA]
  
  ErrorDocument 404 /404.html
  ErrorDocument 422 /422.html
  ErrorDocument 500 /500.html
  ErrorDocument 503 /deploy.html
  
  LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %&gt;s %b" common_forwarded
  ErrorLog  /${APACHE_LOG_DIR}/gitlab.error.log
  CustomLog /${APACHE_LOG_DIR}/gitlab.forwarded.log common_forwarded
  CustomLog /${APACHE_LOG_DIR}/gitlab.access.log combined env=!dontlog
  CustomLog /${APACHE_LOG_DIR}/gitlab.log combined
  &lt;/VirtualHost&gt;
  </code></pre>