source: mod_gnutls/test/tests/30_ip_based_vhosts/apache.conf @ 0062ede

debian/master
Last change on this file since 0062ede was 0062ede, checked in by Fiona Klute <fiona.klute@…>, 18 months ago

Test for IP-based virtual hosts

Mostly to make sure the new "same vhost" check for TLS connection and
request works correctly with IP-based virtual hosts.

  • Property mode set to 100644
File size: 641 bytes
Line 
1Include ${srcdir}/base_apache.conf
2Include ${srcdir}/cgi_module.conf
3
4GnuTLSCache ${DEFAULT_CACHE}
5
6<VirtualHost ${VHOST1_IP}:${TEST_PORT}>
7        ServerName      ${TEST_HOST}
8        GnuTLSEnable    On
9        GnuTLSCertificateFile   server/x509.pem
10        GnuTLSKeyFile           server/secret.key
11</VirtualHost>
12
13<VirtualHost ${VHOST2_IP}:${TEST_PORT}>
14        ServerName      ${TEST_HOST}
15        GnuTLSEnable    On
16        GnuTLSCertificateFile   server/x509.pem
17        GnuTLSKeyFile           server/secret.key
18
19        # CGI is allowed only on this virtual host, so a successful
20        # request to a CGI script shows that the right server has been
21        # selected.
22        <Directory ${srcdir}/data>
23                Options +ExecCGI
24        </Directory>
25</VirtualHost>
Note: See TracBrowser for help on using the repository browser.