summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/conf/ssl/proxyssl.conf.in
blob: 3c86c137042b4f6d77ae2a9b04bb58d7e3c183ef (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<IfModule @ssl_module@>

<IfModule mod_proxy.c>

    #here we can test http <-> https
    <VirtualHost proxy_http_https>
        #these are not on by default in the 1.x based mod_ssl
        <IfDefine APACHE2>
            SSLProxyEngine On

            SSLProxyProtocol All
            SSLProxyCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

            SSLProxyMachineCertificateFile @SSLCA@/asf/proxy/client_ok.pem
            #SSLProxyMachineCertificatePath @SSLCA@/asf/proxy

            SSLProxyCACertificateFile @SSLCA@/asf/certs/ca.crt
            SSLProxyCACertificatePath @ServerRoot@/conf/ssl
            SSLProxyCARevocationFile @SSLCA@/asf/crl/ca-bundle.crl
            <IfVersion >= 2.3.15>
                SSLProxyCARevocationCheck chain
            </IfVersion>
            SSLProxyVerify on
            SSLProxyVerifyDepth 10
        </IfDefine>


        ProxyPass        / https://@proxyssl_url@/
        ProxyPassReverse / https://@proxyssl_url@/
    </VirtualHost>


    #here we can test https <-> https
    <VirtualHost proxy_https_https>
        SSLEngine on

        #these are not on by default in the 1.x based mod_ssl
        <IfDefine APACHE2>
            SSLProxyEngine On
            # ensure that client_ok.pem is picked first:
            SSLProxyMachineCertificateFile @SSLCA@/asf/proxy/client_ok.pem
            SSLProxyMachineCertificatePath @SSLCA@/asf/proxy
            SSLProxyCACertificateFile @SSLCA@/asf/certs/ca.crt
            SSLProxyVerify on
            SSLProxyCARevocationPath @SSLCA@/asf/crl
            <IfVersion >= 2.3.15>
                SSLProxyCARevocationCheck chain
            </IfVersion>
        </IfDefine>


        ProxyPass        / https://@proxyssl_url@/
        ProxyPassReverse / https://@proxyssl_url@/
    </VirtualHost>

    #here we can test http <-> https using SSLProxyMachine* inside <Proxy>
    <VirtualHost proxy_http_https_proxy_section>
        #these are not on by default in the 1.x based mod_ssl
        <IfDefine APACHE2>
            SSLProxyEngine On

            SSLProxyProtocol All
            SSLProxyCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

            SSLProxyCACertificateFile @SSLCA@/asf/certs/ca.crt
            SSLProxyCACertificatePath @ServerRoot@/conf/ssl
            SSLProxyCARevocationFile @SSLCA@/asf/crl/ca-bundle.crl
            <IfVersion >= 2.3.15>
                SSLProxyCARevocationCheck chain
            </IfVersion>
            SSLProxyVerify on
            SSLProxyVerifyDepth 10
        </IfDefine>


        ProxyPass        / https://@proxyssl_url@/
        ProxyPassReverse / https://@proxyssl_url@/
        <IfDefine APACHE2>
            <Proxy https://@proxyssl_url@>
                SSLProxyMachineCertificateFile @SSLCA@/asf/proxy/client_ok.pem
                #SSLProxyMachineCertificatePath @SSLCA@/asf/proxy
            </Proxy>
        </IfDefine>
    </VirtualHost>


    #here we can test https <-> https using SSLProxyMachine* inside <Proxy>
    <VirtualHost proxy_https_https_proxy_section>
        SSLEngine on

        #these are not on by default in the 1.x based mod_ssl
        <IfDefine APACHE2>
            SSLProxyEngine On
            SSLProxyCACertificateFile @SSLCA@/asf/certs/ca.crt
            SSLProxyVerify on
            SSLProxyCARevocationPath @SSLCA@/asf/crl
            <IfVersion >= 2.3.15>
                SSLProxyCARevocationCheck chain
            </IfVersion>
        </IfDefine>


        ProxyPass        / https://@proxyssl_url@/
        ProxyPassReverse / https://@proxyssl_url@/
        <IfDefine APACHE2>
            <Proxy https://@proxyssl_url@>
                # ensure that client_ok.pem is picked first:
                SSLProxyMachineCertificateFile @SSLCA@/asf/proxy/client_ok.pem
                SSLProxyMachineCertificatePath @SSLCA@/asf/proxy
            </Proxy>
        </IfDefine>
    </VirtualHost>

    #here we can test https <-> http
    <VirtualHost proxy_https_http>
        SSLEngine on

        ProxyPass        / http://@servername@:@port@/
        ProxyPassReverse / http://@servername@:@port@/
    </VirtualHost>

</IfModule>

</IfModule>