From c2378f80289ead8157c63ac6216836bab6e4294b Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 7 Nov 2007 13:39:53 +0000 Subject: r1254, r1416, r1493 merge: the "www.example.*" wildcard hash support --- src/http/ngx_http_core_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http_core_module.c') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 0576dc46c..1ef1a6c16 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2725,7 +2725,7 @@ ngx_http_core_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ch = value[1].data[0]; if (cscf->server_name.data == NULL && value[1].len) { - if (ch == '*') { + if (ngx_strchr(value[1].data, '*')) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "first server name \"%V\" must not be wildcard", &value[1]); -- cgit