Browse Source

nginx: set default install prefix /opt/nginx and removed debug code

cross
Christian Wiese 16 years ago
parent
commit
ea125826be
  1. 9
      network/nginx/nginx.conf

9
network/nginx/nginx.conf

@ -13,20 +13,22 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if [ $prefix_auto = 1 ]; then
prefix="opt/nginx"
set_confopt
fi
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
@ -36,7 +38,6 @@ var_append confopt ' ' "--http-client-body-temp-path=$localstatedir/$pkg/temp/cl
# 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