From 381b8f7fdadf003fc22be8f1b548ec4e027bb4eb Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Mon, 14 Jun 2010 17:35:32 +0200 Subject: [PATCH] nginx: Shortened nginx.conf using a loop to set temporary paths and files. --- network/nginx/nginx.conf | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/network/nginx/nginx.conf b/network/nginx/nginx.conf index 6b0a14adb..4dc5f20d9 100644 --- a/network/nginx/nginx.conf +++ b/network/nginx/nginx.conf @@ -29,14 +29,10 @@ var_append confopt ' ' "--pid-path=$localstatedir/run/nginx.pid" # set path to nginx.lock file var_append confopt ' ' "--lock-path=$localstatedir/lock/nginx.lock" -# set path to the http proxy temporary files -var_append confopt ' ' "--http-proxy-temp-path=$localstatedir/temp/proxy_temp" -# set path to the http fastcgi temporary -var_append confopt ' ' "--http-fastcgi-temp-path=$localstatedir/temp/fastcgi_temp" -# set path to the http uwsgi temporary -var_append confopt ' ' "--http-uwsgi-temp-path=$localstatedir/temp/uwsgi_temp" -# set path to the http client request body -var_append confopt ' ' "--http-client-body-temp-path=$localstatedir/temp/client_body_temp" +# set temporary paths and files +for x in proxy fastcgi uwsgi client-body; do + var_append confopt ' ' "--http-$x-temp-path=$localstatedir/temp/${x//-/_}_temp" +done # log directories logdir="$localstatedir/log/$pkg"