Fix http to https 400 error
This commit is contained in:
@@ -1879,7 +1879,9 @@ ngx_http_process_request(ngx_http_request_t *r)
|
|||||||
if (c->ssl == NULL) {
|
if (c->ssl == NULL) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"client sent plain HTTP request to HTTPS port");
|
"client sent plain HTTP request to HTTPS port");
|
||||||
ngx_http_finalize_request(r, NGX_HTTP_TO_HTTPS);
|
// Connect 443 port to HTTP = Terminate
|
||||||
|
// ngx_http_finalize_request(r, NGX_HTTP_TO_HTTPS);
|
||||||
|
ngx_http_terminate_request(r, rc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user