Mercurial > hg > nginx-quic
changeset 1155:39a3aa08eefe
disable $document_root variable in the "root/alias" directive
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 01 Apr 2007 09:03:14 +0000 |
parents | 427de53e45c2 |
children | a9005d2e2c99 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2659,6 +2659,17 @@ ngx_http_core_root(ngx_conf_t *cf, ngx_c value = cf->args->elts; + if (ngx_strstr(value[1].data, "$document_root") != 0 + || ngx_strstr(value[1].data, "${document_root}") != 0) + { + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "the $document_root variable may not be used " + "in the \"%V\" directive", + &cmd->name); + + return NGX_CONF_ERROR; + } + lcf->alias = alias; lcf->root = value[1];