For your Ruby, you'll must install this gems:
sudo gem install passenger
sudo passenger-install-apache2-module
At this moment, you'll asked to install some Apache2's deps (three deps):
sudo apt-get install apache2-prefork-dev
sudo apt-get install libapr1-dev
sudo apt-get install libaprutil1-dev
Enable these apache modules.
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http
sudo a2enmod rewrite
Obs
At my install, I was needed install at port 8081 to don't conflict with my Apache Tomcat at port 8080, to change default Gitlab port I'm just edit /home/git/gitlab/config/gitlab.yml the port parameter.
The gist bellow gitlab.conf has been located at:
/etc/apache2/sites-available/gitlab.conf
And you can active this conf file with:
sudo a2ensite gitlab
You don't need create any symbolic link for public Apache2 folder.
Please note, that first three lines of
gitlab.conffile may differ on your system. This three lines must be provided in the final steps ofsudo passenger-install-apache2-moduleexecution. So just copy it from there.