Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 1234:6be3d9073266
forbid alias inside location given by regular expression
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Jun 2007 20:45:45 +0000 |
parents | c6c33f81fd79 |
children | f8a40ccafb04 |
comparison
equal
deleted
inserted
replaced
1233:754f3648642d | 1234:6be3d9073266 |
---|---|
2672 } | 2672 } |
2673 | 2673 |
2674 return NGX_CONF_ERROR; | 2674 return NGX_CONF_ERROR; |
2675 } | 2675 } |
2676 | 2676 |
2677 #if (NGX_PCRE) | |
2678 | |
2679 if (lcf->regex && alias) { | |
2680 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | |
2681 "the \"alias\" directive may not be used " | |
2682 "inside location given by regular expression"); | |
2683 | |
2684 return NGX_CONF_ERROR; | |
2685 } | |
2686 | |
2687 #endif | |
2688 | |
2677 value = cf->args->elts; | 2689 value = cf->args->elts; |
2678 | 2690 |
2679 if (ngx_strstr(value[1].data, "$document_root") | 2691 if (ngx_strstr(value[1].data, "$document_root") |
2680 || ngx_strstr(value[1].data, "${document_root}")) | 2692 || ngx_strstr(value[1].data, "${document_root}")) |
2681 { | 2693 { |