Mercurial > hg > nginx-tests
comparison h3_server_name.t @ 1986:11463d379570
Tests: reworked HTTP/2 tests to use "http2 on".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 05:08:02 +0300 |
parents | 236d038dc04a |
children |
comparison
equal
deleted
inserted
replaced
1985:b5e2609d34a3 | 1986:11463d379570 |
---|---|
42 | 42 |
43 ssl_certificate_key localhost.key; | 43 ssl_certificate_key localhost.key; |
44 ssl_certificate localhost.crt; | 44 ssl_certificate localhost.crt; |
45 | 45 |
46 server { | 46 server { |
47 listen 127.0.0.1:8443 ssl http2; | 47 listen 127.0.0.1:8443 ssl; |
48 listen 127.0.0.1:%%PORT_8980_UDP%% quic; | 48 listen 127.0.0.1:%%PORT_8980_UDP%% quic; |
49 server_name ~^(?P<name>.+)\.example\.com$; | 49 server_name ~^(?P<name>.+)\.example\.com$; |
50 | |
51 http2 on; | |
50 | 52 |
51 location / { | 53 location / { |
52 return 200 $name; | 54 return 200 $name; |
53 } | 55 } |
54 } | 56 } |
72 . "-out $d/$name.crt -keyout $d/$name.key " | 74 . "-out $d/$name.crt -keyout $d/$name.key " |
73 . ">>$d/openssl.out 2>&1") == 0 | 75 . ">>$d/openssl.out 2>&1") == 0 |
74 or die "Can't create certificate for $name: $!\n"; | 76 or die "Can't create certificate for $name: $!\n"; |
75 } | 77 } |
76 | 78 |
77 # suppress deprecation warning | |
78 | |
79 open OLDERR, ">&", \*STDERR; close STDERR; | |
80 $t->run(); | 79 $t->run(); |
81 open STDERR, ">&", \*OLDERR; | |
82 | 80 |
83 ############################################################################### | 81 ############################################################################### |
84 | 82 |
85 # ssl_servername_regex wasn't inherited from QUIC connection, | 83 # ssl_servername_regex wasn't inherited from QUIC connection, |
86 # other protocols are provided for convenience | 84 # other protocols are provided for convenience |