source: mod_gnutls/test/tests/04_name_based_vhosts/apache.conf @ 2495b5a

asyncio
Last change on this file since 2495b5a was 2495b5a, checked in by Fiona Klute <fiona.klute@…>, 12 months ago

Create rewrite paths that only work on one virtual host each

This makes it easy to verify that the expected virtual host responded
to the request.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1Include ${srcdir}/base_apache.conf
2
3GnuTLSCache ${DEFAULT_CACHE}
4
5LoadModule rewrite_module ${AP_LIBEXECDIR}/mod_rewrite.so
6
7<VirtualHost _default_:${TEST_PORT}>
8    ServerName ${TEST_HOST}
9    GnuTLSEnable On
10    GnuTLSCertificateFile authority/server/x509.pem
11    GnuTLSKeyFile authority/server/secret.key
12    # create a path that only works on this vhost
13    RewriteEngine On
14    RewriteRule "^/vhost0/test\.txt$" "/test.txt" [PT]
15</VirtualHost>
16
17<VirtualHost _default_:${TEST_PORT}>
18    ServerName meow.test
19    ServerAlias *.meow.test
20    GnuTLSEnable On
21    GnuTLSCertificateFile authority/meow.test/x509.pem
22    GnuTLSKeyFile authority/meow.test/secret.key
23    RewriteEngine On
24    RewriteRule "^/meow/test\.txt$" "/test.txt" [PT]
25</VirtualHost>
26
27<VirtualHost _default_:${TEST_PORT}>
28    ServerName domain.test
29    ServerAlias www.domain.test
30    ServerAlias *.example.test
31    GnuTLSEnable On
32    GnuTLSCertificateFile authority/server/x509.pem
33    GnuTLSKeyFile authority/server/secret.key
34    RewriteEngine On
35    RewriteRule "^/vhost2/test\.txt$" "/test.txt" [PT]
36</VirtualHost>
Note: See TracBrowser for help on using the repository browser.