Skip to content

Instantly share code, notes, and snippets.

@tigefa4u
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigefa4u/9294404 to your computer and use it in GitHub Desktop.
Save tigefa4u/9294404 to your computer and use it in GitHub Desktop.
gitlab passenger
LoadModule passenger_module /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.37
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
<VirtualHost *:80>
ServerName source.tigefa.org
ServerAlias www.source.tigefa.org
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /home/git/gitlab/public
PassengerAppRoot "/home/git/gitlab
PassengerUser git
PassengerGroup git
<Directory /home/git/gitlab/public>
PassengerEnabled on
Options -MultiViews
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment