diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-10-09 20:30:11 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-10-09 20:30:11 +0400 |
commit | fb7d63250ed10e7655668d3c58251a5f1da32063 (patch) | |
tree | 9cac34f44f5f148467e1f11910d17740fe02e556 /src/http/modules/ngx_http_fastcgi_module.c | |
parent | 827b2511e6ffee946b7b5c00a67bc50449fc2d72 (diff) | |
download | nginx-fb7d63250ed10e7655668d3c58251a5f1da32063.tar.gz nginx-fb7d63250ed10e7655668d3c58251a5f1da32063.zip |
Upstream: fixed inheritance of proxy_store and friends.
The proxy_store, fastcgi_store, scgi_store and uwsgi_store were inherited
incorrectly if a directive with variables was defined, and then redefined
to the "on" value, i.e. in configurations like:
proxy_store /data/www$upstream_http_x_store;
location / {
proxy_store on;
}
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 8520c0066..1c63786c8 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -2432,7 +2432,7 @@ ngx_http_fastcgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) ngx_hash_init_t hash; ngx_http_core_loc_conf_t *clcf; - if (conf->upstream.store != 0) { + if (conf->upstream.store == NGX_CONF_UNSET) { ngx_conf_merge_value(conf->upstream.store, prev->upstream.store, 0); |