1
|
<VirtualHost project.<mydomain>:443>
|
2
|
ServerName project.<mydomain>
|
3
|
|
4
|
SSLEngine on
|
5
|
SSLCertificateKeyFile /etc/apache2/myssl/server.cert.key
|
6
|
SSLCertificateFile /etc/apache2/myssl/server.cert.crt
|
7
|
|
8
|
DocumentRoot /var/www/redmine
|
9
|
ServerAdmin nico@<mydomain>
|
10
|
LogLevel warn
|
11
|
ErrorLog /var/log/apache2/redmine_error
|
12
|
CustomLog /var/log/apache2/redmine_access combined
|
13
|
<Directory /var/www/redmine>
|
14
|
Options Indexes FollowSymLinks MultiViews
|
15
|
AllowOverride None
|
16
|
Order allow,deny
|
17
|
allow from all
|
18
|
RailsBaseURI /redmine
|
19
|
RailsEnv production
|
20
|
PassengerResolveSymlinksInDocumentRoot on
|
21
|
</Directory>
|
22
|
</VirtualHost>
|
23
|
|
24
|
<VirtualHost project.<mydomain>:80>
|
25
|
#NameVirtualHost project.<mydomain>:80
|
26
|
ServerName project.<mydomain>
|
27
|
RewriteEngine On
|
28
|
RewriteCond %{HTTPS} off
|
29
|
RewriteRule (.*) https://project.<mydomain>%{REQUEST_URI}
|
30
|
</VirtualHost>
|
31
|
|
32
|
<VirtualHost git.<mydomain>:80>
|
33
|
NameVirtualHost git.<mydomain>:80
|
34
|
ServerName git.<mydomain>
|
35
|
RewriteEngine On
|
36
|
RewriteCond %{HTTPS} off
|
37
|
RewriteRule (.*) https://git.<mydomain>%{REQUEST_URI}
|
38
|
</VirtualHost>
|
39
|
|
40
|
|
41
|
<VirtualHost git.<mydomain>:443>
|
42
|
ServerName git.<mydomain>
|
43
|
NameVirtualHost git.<mydomain>:443
|
44
|
|
45
|
ServerAdmin nico@<mydomain>
|
46
|
DocumentRoot /home/gitlab/gitlab/public
|
47
|
|
48
|
SSLEngine on
|
49
|
SSLCertificateKeyFile /etc/apache2/myssl/git/git.key
|
50
|
SSLCertificateFile /etc/apache2/myssl/git/git.crt
|
51
|
|
52
|
<Directory "/home/gitlab/gitlab/public">
|
53
|
Options -MultiViews
|
54
|
AllowOverride all
|
55
|
</Directory>
|
56
|
</VirtualHost>
|