comparison src/http/modules/ngx_http_proxy_module.c @ 4422:b1a9d725ab69

Fixed proxy_redirect off inheritance. Example configuration to reproduce: server { proxy_redirect off; location / { proxy_pass http://localhost:8000; proxy_redirect http://localhost:8000/ /; location ~ \.php$ { proxy_pass http://localhost:8000; # proxy_redirect must be inherited from the level above, # but instead it was switched off here } } }
author Valentin Bartenev <vbart@nginx.com>
date Mon, 30 Jan 2012 11:22:56 +0000
parents d620f497c50f
children 103587c7ae5f
comparison
equal deleted inserted replaced
4421:fbae1a82de8b 4422:b1a9d725ab69
3290 3290
3291 if (plcf->redirect == 0) { 3291 if (plcf->redirect == 0) {
3292 return NGX_CONF_OK; 3292 return NGX_CONF_OK;
3293 } 3293 }
3294 3294
3295 plcf->redirect = 1;
3296
3295 value = cf->args->elts; 3297 value = cf->args->elts;
3296 3298
3297 if (cf->args->nelts == 2) { 3299 if (cf->args->nelts == 2) {
3298 if (ngx_strcmp(value[1].data, "off") == 0) { 3300 if (ngx_strcmp(value[1].data, "off") == 0) {
3299 plcf->redirect = 0; 3301 plcf->redirect = 0;