comparison src/http/ngx_http_core_module.c @ 2263:41b51261b726

disable $realpath_root variable in a "root" directive
author Igor Sysoev <igor@sysoev.ru>
date Mon, 29 Sep 2008 04:47:22 +0000
parents 07bf557a2e40
children 732bf367dc08
comparison
equal deleted inserted replaced
2262:c31f46332e80 2263:41b51261b726
3289 &cmd->name); 3289 &cmd->name);
3290 3290
3291 return NGX_CONF_ERROR; 3291 return NGX_CONF_ERROR;
3292 } 3292 }
3293 3293
3294 if (ngx_strstr(value[1].data, "$realpath_root")
3295 || ngx_strstr(value[1].data, "${realpath_root}"))
3296 {
3297 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3298 "the $realpath_root variable may not be used "
3299 "in the \"%V\" directive",
3300 &cmd->name);
3301
3302 return NGX_CONF_ERROR;
3303 }
3304
3294 lcf->alias = alias; 3305 lcf->alias = alias;
3295 lcf->root = value[1]; 3306 lcf->root = value[1];
3296 3307
3297 if (!alias && lcf->root.data[lcf->root.len - 1] == '/') { 3308 if (!alias && lcf->root.data[lcf->root.len - 1] == '/') {
3298 lcf->root.len--; 3309 lcf->root.len--;