aboutsummaryrefslogtreecommitdiff
path: root/config/rhodecode
blob: 723ac6abccd3326bf3fd4c0b6af35fad252fbf5d (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
<VirtualHost *:80>
        ServerName XXXX
        ServerAlias XXXX

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

        # 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>

<VirtualHost *:443>
        ServerName XXXX
        ServerAlias XXXX

        SSLEngine On
        SSLCertificateFile /etc/ssl/certs/XXXX
        SSLCertificateKeyFile /etc/ssl/private/XXXX

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

        # 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>