Fix http to https 400 error

This commit is contained in:
Hakase
2018-04-28 10:15:12 +09:00
parent c6f2d3700c
commit 3bc4882884
+3 -1
View File
@@ -1879,7 +1879,9 @@ ngx_http_process_request(ngx_http_request_t *r)
if (c->ssl == NULL) {
ngx_log_error(NGX_LOG_INFO, c->log, 0,
"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;
}