Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 1253:8ef04207c84f
the "www.example.*" wildcard hash support
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 11 Jun 2007 19:49:22 +0000 |
parents | 7dda762dcc9a |
children | e958b3cab51a |
comparison
equal
deleted
inserted
replaced
1252:132ffdecebfe | 1253:8ef04207c84f |
---|---|
2616 value = cf->args->elts; | 2616 value = cf->args->elts; |
2617 | 2617 |
2618 ch = value[1].data[0]; | 2618 ch = value[1].data[0]; |
2619 | 2619 |
2620 if (cscf->server_name.data == NULL && value[1].len) { | 2620 if (cscf->server_name.data == NULL && value[1].len) { |
2621 if (ch == '*') { | 2621 if (ngx_strchr(value[1].data, '*')) { |
2622 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 2622 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
2623 "first server name \"%V\" must not be wildcard", | 2623 "first server name \"%V\" must not be wildcard", |
2624 &value[1]); | 2624 &value[1]); |
2625 return NGX_CONF_ERROR; | 2625 return NGX_CONF_ERROR; |
2626 } | 2626 } |