aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-29 19:05:21 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-29 19:05:21 +0000
commitc24de1e853a7e71774faa0ee674ecbc3de16dac2 (patch)
tree3cc0f99e01b15461744b43cf2f410800304c17d6 /src/http/ngx_http_core_module.c
parentb548e13cdf612e82758b06a28c7426dfcd1e4b70 (diff)
downloadnginx-c24de1e853a7e71774faa0ee674ecbc3de16dac2.tar.gz
nginx-c24de1e853a7e71774faa0ee674ecbc3de16dac2.zip
handle old "server_name *"
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 4f43ead43..c8266a3e8 100644
--- 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, 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;