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 # set path to nginx.lock file
var_append confopt ' ' "--lock-path=$localstatedir/lock/nginx.lock" var_append confopt ' ' "--lock-path=$localstatedir/lock/nginx.lock"
# set path to the http proxy temporary files # set temporary paths and files
var_append confopt ' ' "--http-proxy-temp-path=$localstatedir/temp/proxy_temp" for x in proxy fastcgi uwsgi client-body; do
# set path to the http fastcgi temporary var_append confopt ' ' "--http-$x-temp-path=$localstatedir/temp/${x//-/_}_temp"
var_append confopt ' ' "--http-fastcgi-temp-path=$localstatedir/temp/fastcgi_temp" done
# 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"
# log directories # log directories
logdir="$localstatedir/log/$pkg" logdir="$localstatedir/log/$pkg"

Loading…
Cancel
Save