Mercurial > hg > nginx
comparison src/http/modules/ngx_http_proxy_module.c @ 3471:d8c56e7851b8
"proxy_redirect default" may not be used if a proxy_pass uses variables
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 10 Mar 2010 14:41:49 +0000 |
parents | b982f2dee8cf |
children | fb0b7450c2e8 |
comparison
equal
deleted
inserted
replaced
3470:b982f2dee8cf | 3471:d8c56e7851b8 |
---|---|
2752 if (pr == NULL) { | 2752 if (pr == NULL) { |
2753 return NGX_CONF_ERROR; | 2753 return NGX_CONF_ERROR; |
2754 } | 2754 } |
2755 | 2755 |
2756 if (ngx_strcmp(value[1].data, "default") == 0) { | 2756 if (ngx_strcmp(value[1].data, "default") == 0) { |
2757 if (plcf->proxy_lengths) { | |
2758 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | |
2759 "\"proxy_redirect default\" may not be used " | |
2760 "with \"proxy_pass\" directive with variables"); | |
2761 return NGX_CONF_ERROR; | |
2762 } | |
2763 | |
2757 if (plcf->url.data == NULL) { | 2764 if (plcf->url.data == NULL) { |
2758 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 2765 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
2759 "\"proxy_redirect default\" must go " | 2766 "\"proxy_redirect default\" must go " |
2760 "after the \"proxy_pass\" directive"); | 2767 "after the \"proxy_pass\" directive"); |
2761 return NGX_CONF_ERROR; | 2768 return NGX_CONF_ERROR; |