source: mod_gnutls/test/tests/31_vhost_SNI_serveralias_match/test.yml @ e63515a

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

Fix SNI/ServerAlias matching

ServerAliases? were never checked if ServerName? was set, which is
obviously wrong, and the test did not verify if the correct virtual
host had been selected. Fix this by checking ServerName?, explicit
ServerAliases?, and wildcard ServerAliases? in order, and returning the
first match. Also the test now verifies the selected virtual host and
tests a wildcard match in addition to an explicit ServerAlias?.

  • Property mode set to 100644
File size: 586 bytes
Line 
1- !connection
2  gnutls_params:
3    - x509cafile=authority/x509.pem
4    - sni-hostname=example.virtual.host
5  actions:
6    - !request
7      path: /vhost/test.txt
8      headers:
9        Host: example.virtual.host
10      expect:
11        status: 200
12        body:
13          exactly: |
14            test
15- !connection
16  gnutls_params:
17    - x509cafile=authority/x509.pem
18    - sni-hostname=test.example.com
19  actions:
20    - !request
21      path: /vhost/test.txt
22      headers:
23        Host: test.example.com
24      expect:
25        status: 200
26        body:
27          exactly: |
28            test
Note: See TracBrowser for help on using the repository browser.