From 20ca9e52494b53c100956d3460a35bb5af7e88c6 Mon Sep 17 00:00:00 2001 From: ROMB Date: Tue, 8 May 2018 22:31:16 +1100 Subject: [PATCH] Remove unused and unconfigurable temp_path directory Nginx trying to create this directory (it is not possible to change it to something other than NGX_HTTP_PROXY_TEMP_PATH configure variable) on initialization, but it is not used. --- src/nginx_module/Configuration.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/nginx_module/Configuration.c b/src/nginx_module/Configuration.c index cfbe397d76..0441127eec 100644 --- a/src/nginx_module/Configuration.c +++ b/src/nginx_module/Configuration.c @@ -61,10 +61,6 @@ static ngx_str_t headers_to_hide[] = { passenger_main_conf_t passenger_main_conf; -static ngx_path_init_t ngx_http_proxy_temp_path = { - ngx_string(NGX_HTTP_PROXY_TEMP_PATH), { 1, 2, 0 } -}; - static ngx_int_t merge_headers(ngx_conf_t *cf, passenger_loc_conf_t *conf, passenger_loc_conf_t *prev); @@ -573,11 +569,6 @@ passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) |NGX_HTTP_UPSTREAM_FT_OFF; } - ngx_conf_merge_path_value(cf, - &conf->upstream_config.temp_path, - prev->upstream_config.temp_path, - &ngx_http_proxy_temp_path); - #if (NGX_HTTP_CACHE) #if NGINX_VERSION_NUM >= 1007009