@@ -25,12 +25,13 @@ __DATA__
25
25
--- config
26
26
location / {
27
27
proxy_ssl_session_reuse off;
28
+ proxy_set_header Host "www.alipay.com";
28
29
proxy_pass https://test;
29
30
}
30
31
31
32
--- request
32
33
GET /
33
- --- response_body_like: ^<(.*)>[\r\n\s\t] *$
34
+ --- response_body_like: ^. *$
34
35
35
36
=== TEST 2: the ssl_hello_check test with ip_hash
36
37
--- http_config
@@ -46,12 +47,13 @@ GET /
46
47
--- config
47
48
location / {
48
49
proxy_ssl_session_reuse off;
50
+ proxy_set_header Host "www.alipay.com";
49
51
proxy_pass https://test;
50
52
}
51
53
52
54
--- request
53
55
GET /
54
- --- response_body_like: ^<(.*)>[\r\n\s\t] *$
56
+ --- response_body_like: ^. *$
55
57
56
58
=== TEST 3: the ssl_hello_check test with bad ip
57
59
--- http_config
@@ -67,12 +69,13 @@ GET /
67
69
--- config
68
70
location / {
69
71
proxy_ssl_session_reuse off;
72
+ proxy_set_header Host "www.alipay.com";
70
73
proxy_pass https://test;
71
74
}
72
75
73
76
--- request
74
77
GET /
75
- --- response_body_like: ^<(.*)>[\r\n\s\t] *$
78
+ --- response_body_like: ^. *$
76
79
77
80
=== TEST 4: the ssl_hello_check test with least_conn
78
81
--- http_config
@@ -88,17 +91,18 @@ GET /
88
91
--- config
89
92
location / {
90
93
proxy_ssl_session_reuse off;
94
+ proxy_set_header Host "www.alipay.com";
91
95
proxy_pass https://test;
92
96
}
93
97
94
98
--- request
95
99
GET /
96
- --- response_body_like: ^<(.*)>[\r\n\s\t] *$
100
+ --- response_body_like: ^. *$
97
101
98
102
=== TEST 5: the ssl_hello_check test with port 80
99
103
--- http_config
100
104
upstream test{
101
- server www.alipay.com :443;
105
+ server www.nginx.org :443;
102
106
103
107
check interval=4000 rise=1 fall=1 timeout=2000 type=http port=80;
104
108
check_http_send "GET / HTTP/1.0\r\n\r\n";
@@ -108,12 +112,14 @@ GET /
108
112
--- config
109
113
location / {
110
114
proxy_ssl_session_reuse off;
115
+ proxy_set_header Host "www.nginx.org";
111
116
proxy_pass https://test;
112
117
}
113
118
114
119
--- request
115
120
GET /
116
- --- response_body_like: ^<(.*)>[\r\n\s\t]*$
121
+ --- error_code: 502
122
+ --- response_body_like: ^.*$
117
123
118
124
=== TEST 6: the ssl_hello_check test with port 443
119
125
--- http_config
@@ -126,12 +132,13 @@ GET /
126
132
--- config
127
133
location / {
128
134
proxy_ssl_session_reuse off;
135
+ proxy_set_header Host "www.alipay.com";
129
136
proxy_pass https://test;
130
137
}
131
138
132
139
--- request
133
140
GET /
134
- --- response_body_like: ^<(.*)>[\r\n\s\t] *$
141
+ --- response_body_like: ^. *$
135
142
136
143
=== TEST 7: the ssl_hello_check test with port 444
137
144
--- http_config
@@ -144,6 +151,7 @@ GET /
144
151
--- config
145
152
location / {
146
153
proxy_ssl_session_reuse off;
154
+ proxy_set_header Host "www.alipay.com";
147
155
proxy_pass https://test;
148
156
}
149
157
0 commit comments