Skip to content

Instantly share code, notes, and snippets.

@stefgosselin
Created March 13, 2013 17:58
Show Gist options
  • Save stefgosselin/5154557 to your computer and use it in GitHub Desktop.
Save stefgosselin/5154557 to your computer and use it in GitHub Desktop.

unicorn config file

Edit file /home/gitlab/gitlab/config/unicorn.rb

Find line listen "#{app_dir}/tmp/sockets/gitlab.socket" and comment it. Uncomment line listen "127.0.0.1:8080"

required modules for apache

  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
<VirtualHost *:80>
ServerName git.domain.com
# Custom log file locations
ErrorLog /var/log/apache2/gitlab_error.log
CustomLog /var/log/apache2/gitlab_access.log combined
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
<Location />
ProxyPassReverse /
Order deny,allow
Allow from all
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment