-
Notifications
You must be signed in to change notification settings - Fork 411
Expand file tree
/
Copy pathgitlab-with-passenger.conf
More file actions
56 lines (48 loc) · 1.65 KB
/
gitlab-with-passenger.conf
File metadata and controls
56 lines (48 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# quick and dirty apache configuration for running gitlab with passenger
#
# PREREQUISITES
#
# you need to install the passenger gem
#
# > sudo gem install passenger
#
# build and install the passenger apache module (most requirements are covered during gitlab installation)
#
# > sudo passenger-install-apache2-module
#
# The install script will prompt you with missing dependencies, and especially how you should update your
# apache config. If you are using debian (or a debian-like apache installation) i strongly suggest
# putting these in /etc/apache2/mods-available/passenger.{load,conf} and use a2enmod to set it up in your
# server:
#
# > sudo a2enmod passenger
#
# update the values between %% in the following file, and everything should be working fine ...
#
# et voilà ...
<VirtualHost *:443>
ServerName gitlab.%YOUR_DOMAIN%
ServerAlias gitlab
ServerAdmin gitmaster@%YOUR_DOMAIN%
DocumentRoot /home/gitlab/gitlab/public
LogLevel warn
ErrorLog /var/log/httpd/09-gitlab-error.log
CustomLog /var/log/httpd/09-gitlab-access.log combined
ServerSignature On
SSLEngine on
SSLCertificateFile %PATH TO A PROPER CERT%
SSLCertificateKeyFile %PATH TO A PROPER KEY%
<Directory /home/gitlab/gitlab/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName gitlab.%YOUR_DOMAIN%
ServerAlias gitlab
ServerAdmin gitmaster@%YOUR_DOMAIN%
DocumentRoot /home/gitlab/gitlab/public
Redirect permanent / https://gitlab.%YOUR_DOMAIN%/
</VirtualHost>