aboutsummaryrefslogtreecommitdiff
path: root/config/rhodecode
blob: 660f1a758678313e1e1003af11e3e464ea1f93dd (plain)
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
<VirtualHost *:80>
        ServerName staging.git.linaro.org
        ServerAlias staging.git.linaro.org

        <Proxy *>
          Order allow,deny
          Allow from all
        </Proxy>

        Alias /git-ro/ /opt/git_repos/
        Alias / /opt/git_repos/

        #important !
        #Directive to properly generate url (clone url) for pylons
        ProxyPreserveHost On

        #rhodecode instance
        ProxyPass / http://127.0.0.1:5000/
        ProxyPassReverse / http://127.0.0.1:5000/

</VirtualHost>

<VirtualHost *:443>
        ServerName staging.git.linaro.org
        ServerAlias staging.git.linaro.org

        SSLEngine On
        SSLCertificateFile /etc/apache2/ssl/apache.pem

        <Proxy *>
          Order allow,deny
          Allow from all
        </Proxy>

        #important !
        #Directive to properly generate url (clone url) for pylons
        ProxyPreserveHost On

        #rhodecode instance
        ProxyPass / http://127.0.0.1:5000/
        ProxyPassReverse / http://127.0.0.1:5000/

        #to enable https use line below
        SetEnvIf X-Url-Scheme https HTTPS=1

</VirtualHost>