Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 1157:a4820184a618
*) introduce ngx_strchr()
*) test server_name for '/': it's common configuration error when
trailing ';' is omitted and a next directive is treated as server_name
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Apr 2007 06:27:30 +0000 |
parents | a9005d2e2c99 |
children | 6e2216ad2c87 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2614,6 +2614,12 @@ ngx_http_core_server_name(ngx_conf_t *cf return NGX_CONF_ERROR; } + if (ngx_strchr(value[i].data, '/')) { + ngx_conf_log_error(NGX_LOG_WARN, cf, 0, + "server name \"%V\" has strange symbols", + &value[i]); + } + sn = ngx_array_push(&cscf->server_names); if (sn == NULL) { return NGX_CONF_ERROR;