diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-03-10 14:41:49 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-03-10 14:41:49 +0000 |
commit | 7fa1c07896a6ec184e665d4f86e7678fa88fef59 (patch) | |
tree | 52f542e9fc79bed1445e206b333e07a358c295fb /src | |
parent | 931d88c7c1fa7ca9b39b1a7190a9cb647af771a0 (diff) | |
download | nginx-7fa1c07896a6ec184e665d4f86e7678fa88fef59.tar.gz nginx-7fa1c07896a6ec184e665d4f86e7678fa88fef59.zip |
"proxy_redirect default" may not be used if a proxy_pass uses variables
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 7cb1cb8f2..23e1fe198 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -2754,6 +2754,13 @@ ngx_http_proxy_redirect(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } if (ngx_strcmp(value[1].data, "default") == 0) { + if (plcf->proxy_lengths) { + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "\"proxy_redirect default\" may not be used " + "with \"proxy_pass\" directive with variables"); + return NGX_CONF_ERROR; + } + if (plcf->url.data == NULL) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "\"proxy_redirect default\" must go " |