mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
handle old "server_name *"
This commit is contained in:
parent
b548e13cdf
commit
c24de1e853
@ -3172,6 +3172,13 @@ ngx_http_core_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
&value[i]);
|
||||
}
|
||||
|
||||
if (value[i].len == 1 && ch == '*') {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"\"server_name *\" is unsupported, use "
|
||||
"\"server_name_in_redirect off\" instead");
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
sn = ngx_array_push(&cscf->server_names);
|
||||
if (sn == NULL) {
|
||||
return NGX_CONF_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user