summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-06-11 19:49:22 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-06-11 19:49:22 +0000
commit9d8a75c5256ada429fdeff93584044eca6cf1a56 (patch)
tree98226bea23d49242292bd5ee4ec0c969d07099b6 /src/http/ngx_http_core_module.c
parentad39e5c7464bebda27c1ccb85fa4872265a399d0 (diff)
downloadnginx-9d8a75c5256ada429fdeff93584044eca6cf1a56.tar.gz
nginx-9d8a75c5256ada429fdeff93584044eca6cf1a56.tar.bz2
the "www.example.*" wildcard hash support
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index c8b699410..a903c9a24 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2618,7 +2618,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]);