This commit is contained in:
xiangwei 2025-05-30 19:21:00 +02:00 committed by GitHub
commit 4c629618cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2288,6 +2288,16 @@ ngx_http_set_virtual_server(ngx_http_request_t *r, ngx_str_t *host)
}
#endif
return NGX_OK;
} else {
#if (NGX_PCRE)
if (hc->ssl_servername_regex
&& ngx_http_regex_exec(r, hc->ssl_servername_regex,
host) == NGX_OK)
{
return NGX_OK;
}
#endif
}
}