mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
42b12b34fa
*) Feature: the worker_priority directive. *) Change: both tcp_nopush and tcp_nodelay directives affect the transferred response. *) Bugfix: nginx did not call initgroups(). Thanks to Andrew Sitnikov and Andrei Nigmatulin. *) Change: now the ngx_http_autoindex_module shows the file size in the bytes. *) Bugfix: the ngx_http_autoindex_module returned the 500 error if the broken symlink was in a directory. *) Bugfix: the files bigger than 4G could not be transferred using sendfile. *) Bugfix: if the backend was resolved to several backends and there was an error while the response waiting then process may got caught in an endless loop. *) Bugfix: the worker process may exit with the "unknown cycle" message when the /dev/poll method was used. *) Bugfix: "close() channel failed" errors. *) Bugfix: the autodetection of the "nobody" and "nogroup" groups. *) Bugfix: the send_lowat directive did not work on Linux. *) Bugfix: the segmentation fault occurred if there was no events section in configuration. *) Bugfix: nginx could not be built on OpenBSD. *) Bugfix: the double slashes in "://" in the URI were converted to ":/".
289 lines
7.1 KiB
Plaintext
289 lines
7.1 KiB
Plaintext
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
help=no
|
|
|
|
NGX_PREFIX=
|
|
NGX_SBIN_PATH=
|
|
NGX_CONF_PATH=
|
|
NGX_ERROR_LOG_PATH=
|
|
NGX_PID_PATH=
|
|
NGX_USER=
|
|
NGX_GROUP=
|
|
NGX_HTTP_LOG_PATH=
|
|
|
|
CC=${CC:-gcc}
|
|
CPP=
|
|
NGX_OBJS=objs
|
|
|
|
NGX_DEBUG=NO
|
|
NGX_CC_OPT=
|
|
NGX_LD_OPT=
|
|
CPU=NO
|
|
|
|
NGX_TEST_BUILD_DEVPOLL=NO
|
|
NGX_TEST_BUILD_EPOLL=NO
|
|
NGX_TEST_BUILD_RTSIG=NO
|
|
NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
|
|
|
|
NGX_PLATFORM=
|
|
NGX_WINE=
|
|
|
|
EVENT_FOUND=NO
|
|
|
|
EVENT_RTSIG=NO
|
|
EVENT_SELECT=NO
|
|
EVENT_POLL=NO
|
|
EVENT_AIO=NO
|
|
|
|
USE_THREADS=NO
|
|
|
|
HTTP=YES
|
|
HTTP_CHARSET=YES
|
|
HTTP_GZIP=YES
|
|
HTTP_SSL=NO
|
|
HTTP_SSI=NO
|
|
HTTP_ACCESS=YES
|
|
HTTP_USERID=YES
|
|
HTTP_AUTOINDEX=YES
|
|
HTTP_STATUS=NO
|
|
HTTP_REWRITE=YES
|
|
HTTP_PROXY=YES
|
|
|
|
IMAP=NO
|
|
|
|
NGX_MODULES=
|
|
|
|
USE_PCRE=NO
|
|
PCRE=NONE
|
|
PCRE_OPT=
|
|
|
|
USE_OPENSSL=NO
|
|
OPENSSL=NONE
|
|
|
|
USE_MD5=NO
|
|
MD5=NONE
|
|
MD5_OPT=
|
|
MD5_ASM=NO
|
|
|
|
USE_ZLIB=NO
|
|
ZLIB=NONE
|
|
ZLIB_OPT=
|
|
ZLIB_ASM=NO
|
|
|
|
|
|
for option
|
|
do
|
|
case "$option" in
|
|
-*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
*) value="" ;;
|
|
esac
|
|
|
|
case "$option" in
|
|
--help) help=yes ;;
|
|
|
|
--prefix=*) NGX_PREFIX="$value" ;;
|
|
--sbin-path=*) NGX_SBIN_PATH="$value" ;;
|
|
--conf-path=*) NGX_CONF_PATH="$value" ;;
|
|
--error-log-path=*) NGX_ERROR_LOG_PATH="$value";;
|
|
--pid-path=*) NGX_PID_PATH="$value" ;;
|
|
--user=*) NGX_USER="$value" ;;
|
|
--group=*) NGX_GROUP="$value" ;;
|
|
|
|
--crossbuild=*) NGX_PLATFORM="$value" ;;
|
|
|
|
--builddir=*) NGX_OBJS="$value" ;;
|
|
|
|
--with-rtsig_module) EVENT_RTSIG=YES ;;
|
|
--with-select_module) EVENT_SELECT=YES ;;
|
|
--without-select_module) EVENT_SELECT=NONE ;;
|
|
--with-poll_module) EVENT_POLL=YES ;;
|
|
--without-poll_module) EVENT_POLL=NONE ;;
|
|
--with-aio_module) EVENT_AIO=YES ;;
|
|
|
|
--with-threads=*) USE_THREADS="$value" ;;
|
|
--with-threads) USE_THREADS="pthreads" ;;
|
|
|
|
--without-http) HTTP=NO ;;
|
|
--http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;;
|
|
|
|
--with-http_ssl_module) HTTP_SSL=YES ;;
|
|
--without-http_charset_module) HTTP_CHARSET=NO ;;
|
|
--without-http_gzip_module) HTTP_GZIP=NO ;;
|
|
--without-http_ssi_module) HTTP_SSI=NO ;;
|
|
--without-http_userid_module) HTTP_USERID=NO ;;
|
|
--without-http_access_module) HTTP_ACCESS=NO ;;
|
|
--without-http_autoindex_module) HTTP_AUTOINDEX=NO ;;
|
|
--without-http_status_module) HTTP_STATUS=NO ;;
|
|
--without-http_rewrite_module) HTTP_REWRITE=NO ;;
|
|
--without-http_proxy_module) HTTP_PROXY=NO ;;
|
|
|
|
--with-imap) IMAP=YES ;;
|
|
|
|
--with-module=*) NGX_MODULES="$NGX_MODULES $values" ;;
|
|
|
|
--with-cc=*) CC="$value" ;;
|
|
--with-cpp=*) CPP="$value" ;;
|
|
--with-cc-opt=*) NGX_CC_OPT="$value" ;;
|
|
--with-ld-opt=*) NGX_LD_OPT="$value" ;;
|
|
--with-cpu-opt=*) CPU="$value" ;;
|
|
--with-debug) NGX_DEBUG=YES ;;
|
|
|
|
--without-pcre) USE_PCRE=DISABLED ;;
|
|
--with-pcre=*) PCRE="$value" ;;
|
|
--with-pcre-opt=*) PCRE_OPT="$value" ;;
|
|
|
|
--with-openssl=*) OPENSSL="$value" ;;
|
|
|
|
--with-md5=*) MD5="$value" ;;
|
|
--with-md5-opt=*) MD5_OPT="$value" ;;
|
|
--with-md5-asm) MD5_ASM=YES ;;
|
|
|
|
--with-zlib=*) ZLIB="$value" ;;
|
|
--with-zlib-opt=*) ZLIB_OPT="$value" ;;
|
|
--with-zlib-asm=*) ZLIB_ASM="$value" ;;
|
|
|
|
--test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;;
|
|
--test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;;
|
|
--test-build-rtsig) NGX_TEST_BUILD_RTSIG=YES ;;
|
|
--test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
|
|
|
|
*)
|
|
echo "$0: error: invalid option \"$option\""
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
|
|
if [ $help = yes ]; then
|
|
|
|
cat << END
|
|
|
|
--help this message
|
|
|
|
--user=USER set non-privilege user
|
|
for the worker processes
|
|
--group=GROUP set non-privilege group
|
|
for the worker processes
|
|
|
|
--with-select_module enable select module
|
|
--without-select_module disable select module
|
|
--with-poll_module enable poll module
|
|
--without-poll_module disable poll module
|
|
|
|
--without-http_charset_module disable ngx_http_charset_module
|
|
--without-http_rewrite_module disable ngx_http_rewrite_module
|
|
--without-http_gzip_module disable ngx_http_gzip_module
|
|
--without-http_proxy_module disable ngx_http_proxy_module
|
|
|
|
--with-cc-opt=OPTIONS additional options for compiler
|
|
--with-ld-opt=OPTIONS additional options for linker
|
|
|
|
--with-pcre=DIR path to PCRE library
|
|
--with-md5=DIR path to md5 library
|
|
--with-zlib=DIR path to zlib library
|
|
--with-openssl=DIR path to OpenSSL library
|
|
|
|
END
|
|
|
|
exit 1
|
|
fi
|
|
|
|
|
|
if [ $HTTP = NO ]; then
|
|
HTTP_CHARSET=NO
|
|
HTTP_GZIP=NO
|
|
HTTP_SSI=NO
|
|
HTTP_USERID=NO
|
|
HTTP_ACCESS=NO
|
|
HTTP_STATUS=NO
|
|
HTTP_REWRITE=NO
|
|
HTTP_PROXY=NO
|
|
fi
|
|
|
|
|
|
if [ ".$NGX_PLATFORM" = ".win32" ]; then
|
|
NGX_WINE=$WINE
|
|
fi
|
|
|
|
|
|
if test -z "$NGX_PREFIX"; then
|
|
NGX_PREFIX=/usr/local/nginx
|
|
fi
|
|
|
|
|
|
case ".$NGX_SBIN_PATH" in
|
|
./*)
|
|
;;
|
|
|
|
.)
|
|
NGX_SBIN_PATH=$NGX_PREFIX/sbin/nginx
|
|
;;
|
|
|
|
*)
|
|
NGX_SBIN_PATH=$NGX_PREFIX/$NGX_SBIN_PATH
|
|
;;
|
|
esac
|
|
|
|
|
|
case ".$NGX_CONF_PATH" in
|
|
./*)
|
|
;;
|
|
|
|
.)
|
|
NGX_CONF_PATH=$NGX_PREFIX/conf/nginx.conf
|
|
;;
|
|
|
|
*)
|
|
NGX_CONF_PATH=$NGX_PREFIX/$NGX_CONF_PATH
|
|
;;
|
|
esac
|
|
|
|
|
|
case ".$NGX_PID_PATH" in
|
|
./*)
|
|
;;
|
|
|
|
.)
|
|
NGX_PID_PATH=$NGX_PREFIX/logs/nginx.pid
|
|
;;
|
|
|
|
*)
|
|
NGX_PID_PATH=$NGX_PREFIX/$NGX_PID_PATH
|
|
;;
|
|
esac
|
|
|
|
|
|
case ".$NGX_ERROR_LOG_PATH" in
|
|
./*)
|
|
;;
|
|
|
|
.)
|
|
NGX_ERROR_LOG_PATH=$NGX_PREFIX/logs/error.log
|
|
;;
|
|
|
|
.stderr)
|
|
NGX_ERROR_LOG_PATH=
|
|
;;
|
|
|
|
*)
|
|
NGX_ERROR_LOG_PATH=$NGX_PREFIX/$NGX_ERROR_LOG_PATH
|
|
;;
|
|
esac
|
|
|
|
|
|
case ".$NGX_HTTP_LOG_PATH" in
|
|
./*)
|
|
;;
|
|
|
|
.)
|
|
NGX_HTTP_LOG_PATH=$NGX_PREFIX/logs/access.log
|
|
;;
|
|
|
|
*)
|
|
NGX_HTTP_LOG_PATH=$NGX_PREFIX/$NGX_HTTP_LOG_PATH
|
|
;;
|
|
esac
|