Mercurial > hg > nginx
changeset 1808:e2f95fee98eb
handle old "server_name *"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 29 Dec 2007 19:05:21 +0000 |
parents | 1739becf3f83 |
children | 1f8c13eb04b6 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3172,6 +3172,13 @@ ngx_http_core_server_name(ngx_conf_t *cf &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;