Browse Source

nginx: Shortened nginx.conf using a loop to set temporary paths and files.

user/karasz/next/updates
Nagy Karoly Gabriel 15 years ago
parent
commit
381b8f7fda
  1. 12
      network/nginx/nginx.conf

12
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"

Loading…
Cancel
Save