I have installed GitLab 7.2.1 with the .deb package from GitLab.org for Debian 7 on a virtual server where I have root access.
On this virtual server I have already installed Apache, version 2.2.22 and I don't want to use Ngnix for GitLab.
Now I have no idea where the public folders of GitLab are or what I have to do or on what I have to pay attention.
So my question is: How do I have to configure my vhost for apache or what do I have to do also that I can use a subdomain like "gitlab.example.com" on my apache web server?
With two things in mind:
sudo netstat -pant | grep unicorn)/opt/gitlab/embedded/service/gitlab-rails/public
You can create a new vhost for gitlab in apache with the following configuration:
<VirtualHost *:80>
  ServerName gitlab.example.com
  ServerSignature Off
  ProxyPreserveHost On
  <Location />
    Order deny,allow
    Allow from all
    ProxyPassReverse http://127.0.0.1:8080
    ProxyPassReverse http://gitlab.example.com/
  </Location>
  RewriteEngine on
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
  # needed for downloading attachments
  DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
</VirtualHost>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With