Mercurial > hg > nginx-tests
comparison proxy_ssl_name.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 907e89fba9c3 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
36 | 36 |
37 http { | 37 http { |
38 %%TEST_GLOBALS_HTTP%% | 38 %%TEST_GLOBALS_HTTP%% |
39 | 39 |
40 upstream backend { | 40 upstream backend { |
41 server 127.0.0.1:8081; | 41 server 127.0.0.1:%%PORT_1%%; |
42 } | 42 } |
43 | 43 |
44 upstream backend2 { | 44 upstream backend2 { |
45 server 127.0.0.1:8081; | 45 server 127.0.0.1:%%PORT_1%%; |
46 } | 46 } |
47 | 47 |
48 server { | 48 server { |
49 listen 127.0.0.1:8080; | 49 listen 127.0.0.1:%%PORT_0%%; |
50 server_name localhost; | 50 server_name localhost; |
51 | 51 |
52 # session reuse is off, as sessions are cached | 52 # session reuse is off, as sessions are cached |
53 # for a particular upstream, and resumed session | 53 # for a particular upstream, and resumed session |
54 # will use server name previously negotiated | 54 # will use server name previously negotiated |
55 | 55 |
56 proxy_ssl_session_reuse off; | 56 proxy_ssl_session_reuse off; |
57 | 57 |
58 location /1 { | 58 location /1 { |
59 proxy_pass https://127.0.0.1:8081/; | 59 proxy_pass https://127.0.0.1:%%PORT_1%%/; |
60 proxy_ssl_name 1.example.com; | 60 proxy_ssl_name 1.example.com; |
61 proxy_ssl_server_name on; | 61 proxy_ssl_server_name on; |
62 } | 62 } |
63 | 63 |
64 location /2 { | 64 location /2 { |
65 proxy_pass https://127.0.0.1:8081/; | 65 proxy_pass https://127.0.0.1:%%PORT_1%%/; |
66 proxy_ssl_name 2.example.com; | 66 proxy_ssl_name 2.example.com; |
67 proxy_ssl_server_name on; | 67 proxy_ssl_server_name on; |
68 | 68 |
69 } | 69 } |
70 | 70 |
88 proxy_ssl_server_name on; | 88 proxy_ssl_server_name on; |
89 proxy_ssl_name backend:123; | 89 proxy_ssl_name backend:123; |
90 } | 90 } |
91 | 91 |
92 location /ip { | 92 location /ip { |
93 proxy_pass https://127.0.0.1:8081/; | 93 proxy_pass https://127.0.0.1:%%PORT_1%%/; |
94 proxy_ssl_server_name on; | 94 proxy_ssl_server_name on; |
95 } | 95 } |
96 | 96 |
97 #location /ip6 { | 97 #location /ip6 { |
98 # proxy_pass https://[::1]:8081/; | 98 # proxy_pass https://[::1]:%%PORT_1%%/; |
99 # proxy_ssl_server_name on; | 99 # proxy_ssl_server_name on; |
100 #} | 100 #} |
101 } | 101 } |
102 | 102 |
103 server { | 103 server { |
104 listen 127.0.0.1:8081 ssl; | 104 listen 127.0.0.1:%%PORT_1%% ssl; |
105 #listen [::1]:8081 ssl; | 105 #listen [::1]:%%PORT_1%% ssl; |
106 server_name 1.example.com; | 106 server_name 1.example.com; |
107 | 107 |
108 ssl_certificate localhost.crt; | 108 ssl_certificate localhost.crt; |
109 ssl_certificate_key localhost.key; | 109 ssl_certificate_key localhost.key; |
110 | 110 |