Browse Source

nginx: adjusting nginx install path

cross
Christian Wiese 16 years ago
parent
commit
ebd6ce53b6
  1. 25
      network/nginx/nginx.conf

25
network/nginx/nginx.conf

@ -2,6 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../nginx/nginx.conf
# Copyright (C) 2009 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
@ -14,3 +15,27 @@
cleanconfopt=0
confopt="--prefix=$root/$prefix"
[[ "$sysconfdir" = */$pkg ]] || sysconfdir=$sysconfdir/$pkg
echo_status "sysconfdir: $sysconfdir"
var_append confopt ' ' "--conf-path=$sysconfdir/nginx.conf"
# set path to nginx.pid file
var_append confopt ' ' "--pid-path=$localstatedir/run/nginx.pid"
# set path to nginx.lock file
var_append confopt ' ' "--lock-path=$localstatedir/lock/nginx.lock"
echo_status "localstatedir: $localstatedir"
# set path to the http proxy temporary files
var_append confopt ' ' "--http-proxy-temp-path=$localstatedir/$pkg/temp/proxy_temp"
# set path to the http fastcgi temporary
var_append confopt ' ' "--http-fastcgi-temp-path=$localstatedir/$pkg/temp/fastcgi_temp"
set path to the http client request body
var_append confopt ' ' "--http-client-body-temp-path=$localstatedir/$pkg/temp/client_body_temp"
# log directories
logdir="$localstatedir/log/$pkg"
echo_status "logdir: $logdir"
var_append confopt ' ' "--http-log-path=$logdir/access.log"
var_append confopt ' ' "--error-log-path=$logdir/error.log"

Loading…
Cancel
Save