/auto/options
options文件主要负责nginx启动前配置脚本对环境变量初始化。
1.默认为环境变量赋值
1 help=no 2 3 NGX_PREFIX= 4 NGX_SBIN_PATH= 5 NGX_MODULES_PATH= 6 NGX_CONF_PREFIX= 7 NGX_CONF_PATH= 8 NGX_ERROR_LOG_PATH= 9 NGX_PID_PATH= 10 NGX_LOCK_PATH= 11 NGX_USER= 12 NGX_GROUP= 13 NGX_BUILD= 14 15 CC=${CC:-cc} 16 CPP= 17 NGX_OBJS=objs 18 19 NGX_DEBUG=NO 20 NGX_CC_OPT= 21 NGX_LD_OPT= 22 CPU=NO 23 24 NGX_RPATH=NO 25 26 NGX_TEST_BUILD_DEVPOLL=NO 27 NGX_TEST_BUILD_EVENTPORT=NO 28 NGX_TEST_BUILD_EPOLL=NO 29 NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO 30 31 NGX_PLATFORM= 32 NGX_WINE= 33 34 EVENT_FOUND=NO 35 36 EVENT_SELECT=NO 37 EVENT_POLL=NO 38 39 USE_THREADS=NO 40 41 NGX_FILE_AIO=NO 42 NGX_IPV6=NO 43 44 HTTP=YES 45 46 NGX_HTTP_LOG_PATH= 47 NGX_HTTP_CLIENT_TEMP_PATH= 48 NGX_HTTP_PROXY_TEMP_PATH= 49 NGX_HTTP_FASTCGI_TEMP_PATH= 50 NGX_HTTP_UWSGI_TEMP_PATH= 51 NGX_HTTP_SCGI_TEMP_PATH= 52 53 HTTP_CACHE=YES 54 HTTP_CHARSET=YES 55 HTTP_GZIP=YES 56 HTTP_SSL=NO 57 HTTP_V2=NO 58 HTTP_SSI=YES 59 HTTP_POSTPONE=NO 60 HTTP_REALIP=NO 61 HTTP_XSLT=NO 62 HTTP_IMAGE_FILTER=NO 63 HTTP_SUB=NO 64 HTTP_ADDITION=NO 65 HTTP_DAV=NO 66 HTTP_ACCESS=YES 67 HTTP_AUTH_BASIC=YES 68 HTTP_AUTH_REQUEST=NO 69 HTTP_USERID=YES 70 HTTP_SLICE=NO 71 HTTP_AUTOINDEX=YES 72 HTTP_RANDOM_INDEX=NO 73 HTTP_STATUS=NO 74 HTTP_GEO=YES 75 HTTP_GEOIP=NO 76 HTTP_MAP=YES 77 HTTP_SPLIT_CLIENTS=YES 78 HTTP_REFERER=YES 79 HTTP_REWRITE=YES 80 HTTP_PROXY=YES 81 HTTP_FASTCGI=YES 82 HTTP_UWSGI=YES 83 HTTP_SCGI=YES 84 HTTP_PERL=NO 85 HTTP_MEMCACHED=YES 86 HTTP_LIMIT_CONN=YES 87 HTTP_LIMIT_REQ=YES 88 HTTP_EMPTY_GIF=YES 89 HTTP_BROWSER=YES 90 HTTP_SECURE_LINK=NO 91 HTTP_DEGRADATION=NO 92 HTTP_FLV=NO 93 HTTP_MP4=NO 94 HTTP_GUNZIP=NO 95 HTTP_GZIP_STATIC=NO 96 HTTP_UPSTREAM_HASH=YES 97 HTTP_UPSTREAM_IP_HASH=YES 98 HTTP_UPSTREAM_LEAST_CONN=YES 99 HTTP_UPSTREAM_KEEPALIVE=YES 100 HTTP_UPSTREAM_ZONE=YES 101 102 # STUB 103 HTTP_STUB_STATUS=NO 104 105 MAIL=NO 106 MAIL_SSL=NO 107 MAIL_POP3=YES 108 MAIL_IMAP=YES 109 MAIL_SMTP=YES 110 111 STREAM=NO 112 STREAM_SSL=NO 113 STREAM_LIMIT_CONN=YES 114 STREAM_ACCESS=YES 115 STREAM_UPSTREAM_HASH=YES 116 STREAM_UPSTREAM_LEAST_CONN=YES 117 STREAM_UPSTREAM_ZONE=YES 118 119 DYNAMIC_MODULES= 120 121 NGX_ADDONS= 122 NGX_ADDON_DEPS= 123 DYNAMIC_ADDONS= 124 125 USE_PCRE=NO 126 PCRE=NONE 127 PCRE_OPT= 128 PCRE_CONF_OPT= 129 PCRE_JIT=NO 130 131 USE_OPENSSL=NO 132 OPENSSL=NONE 133 134 USE_MD5=NO 135 MD5=NONE 136 MD5_OPT= 137 MD5_ASM=NO 138 139 USE_SHA1=NO 140 SHA1=NONE 141 SHA1_OPT= 142 SHA1_ASM=NO 143 144 USE_ZLIB=NO 145 ZLIB=NONE 146 ZLIB_OPT= 147 ZLIB_ASM=NO 148 149 USE_PERL=NO 150 NGX_PERL=perl 151 152 USE_LIBXSLT=NO 153 USE_LIBGD=NO 154 USE_GEOIP=NO 155 156 NGX_GOOGLE_PERFTOOLS=NO 157 NGX_CPP_TEST=NO 158 159 NGX_LIBATOMIC=NO 160 161 NGX_CPU_CACHE_LINE= 162 163 NGX_POST_CONF_MSG= 164 165 opt=
2.对用户输入变量进行赋值
1 for option 2 do 3 opt="$opt `echo $option | sed -e "s/(--[^=]*=)(.* .*)/1'2'/"`" 4 5 case "$option" in 6 -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;; 7 *) value="" ;; 8 esac 9 10 case "$option" in 11 --help) help=yes ;; 12 13 --prefix=) NGX_PREFIX="!" ;; 14 --prefix=*) NGX_PREFIX="$value" ;; 15 --sbin-path=*) NGX_SBIN_PATH="$value" ;; 16 --modules-path=*) NGX_MODULES_PATH="$value" ;; 17 --conf-path=*) NGX_CONF_PATH="$value" ;; 18 --error-log-path=*) NGX_ERROR_LOG_PATH="$value";; 19 --pid-path=*) NGX_PID_PATH="$value" ;; 20 --lock-path=*) NGX_LOCK_PATH="$value" ;; 21 --user=*) NGX_USER="$value" ;; 22 --group=*) NGX_GROUP="$value" ;; 23 24 --crossbuild=*) NGX_PLATFORM="$value" ;; 25 26 --build=*) NGX_BUILD="$value" ;; 27 --builddir=*) NGX_OBJS="$value" ;; 28 29 --with-select_module) EVENT_SELECT=YES ;; 30 --without-select_module) EVENT_SELECT=NONE ;; 31 --with-poll_module) EVENT_POLL=YES ;; 32 --without-poll_module) EVENT_POLL=NONE ;; 33 34 --with-threads) USE_THREADS=YES ;; 35 36 --with-file-aio) NGX_FILE_AIO=YES ;; 37 --with-ipv6) NGX_IPV6=YES ;; 38 39 --without-http) HTTP=NO ;; 40 --without-http-cache) HTTP_CACHE=NO ;; 41 42 --http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;; 43 --http-client-body-temp-path=*) NGX_HTTP_CLIENT_TEMP_PATH="$value" ;; 44 --http-proxy-temp-path=*) NGX_HTTP_PROXY_TEMP_PATH="$value" ;; 45 --http-fastcgi-temp-path=*) NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;; 46 --http-uwsgi-temp-path=*) NGX_HTTP_UWSGI_TEMP_PATH="$value" ;; 47 --http-scgi-temp-path=*) NGX_HTTP_SCGI_TEMP_PATH="$value" ;; 48 49 --with-http_ssl_module) HTTP_SSL=YES ;; 50 --with-http_v2_module) HTTP_V2=YES ;; 51 --with-http_realip_module) HTTP_REALIP=YES ;; 52 --with-http_addition_module) HTTP_ADDITION=YES ;; 53 --with-http_xslt_module) HTTP_XSLT=YES ;; 54 --with-http_xslt_module=dynamic) HTTP_XSLT=DYNAMIC ;; 55 --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES ;; 56 --with-http_image_filter_module=dynamic) 57 HTTP_IMAGE_FILTER=DYNAMIC ;; 58 --with-http_geoip_module) HTTP_GEOIP=YES ;; 59 --with-http_geoip_module=dynamic) 60 HTTP_GEOIP=DYNAMIC ;; 61 --with-http_sub_module) HTTP_SUB=YES ;; 62 --with-http_dav_module) HTTP_DAV=YES ;; 63 --with-http_flv_module) HTTP_FLV=YES ;; 64 --with-http_mp4_module) HTTP_MP4=YES ;; 65 --with-http_gunzip_module) HTTP_GUNZIP=YES ;; 66 --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;; 67 --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES ;; 68 --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;; 69 --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;; 70 --with-http_degradation_module) HTTP_DEGRADATION=YES ;; 71 --with-http_slice_module) HTTP_SLICE=YES ;; 72 73 --without-http_charset_module) HTTP_CHARSET=NO ;; 74 --without-http_gzip_module) HTTP_GZIP=NO ;; 75 --without-http_ssi_module) HTTP_SSI=NO ;; 76 --without-http_userid_module) HTTP_USERID=NO ;; 77 --without-http_access_module) HTTP_ACCESS=NO ;; 78 --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO ;; 79 --without-http_autoindex_module) HTTP_AUTOINDEX=NO ;; 80 --without-http_status_module) HTTP_STATUS=NO ;; 81 --without-http_geo_module) HTTP_GEO=NO ;; 82 --without-http_map_module) HTTP_MAP=NO ;; 83 --without-http_split_clients_module) HTTP_SPLIT_CLIENTS=NO ;; 84 --without-http_referer_module) HTTP_REFERER=NO ;; 85 --without-http_rewrite_module) HTTP_REWRITE=NO ;; 86 --without-http_proxy_module) HTTP_PROXY=NO ;; 87 --without-http_fastcgi_module) HTTP_FASTCGI=NO ;; 88 --without-http_uwsgi_module) HTTP_UWSGI=NO ;; 89 --without-http_scgi_module) HTTP_SCGI=NO ;; 90 --without-http_memcached_module) HTTP_MEMCACHED=NO ;; 91 --without-http_limit_conn_module) HTTP_LIMIT_CONN=NO ;; 92 --without-http_limit_req_module) HTTP_LIMIT_REQ=NO ;; 93 --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO ;; 94 --without-http_browser_module) HTTP_BROWSER=NO ;; 95 --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO ;; 96 --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;; 97 --without-http_upstream_least_conn_module) 98 HTTP_UPSTREAM_LEAST_CONN=NO ;; 99 --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;; 100 --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO ;; 101 102 --with-http_perl_module) HTTP_PERL=YES ;; 103 --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC ;; 104 --with-perl_modules_path=*) NGX_PERL_MODULES="$value" ;; 105 --with-perl=*) NGX_PERL="$value" ;; 106 107 # STUB 108 --with-http_stub_status_module) HTTP_STUB_STATUS=YES ;; 109 110 --with-mail) MAIL=YES ;; 111 --with-mail=dynamic) MAIL=DYNAMIC ;; 112 --with-mail_ssl_module) MAIL_SSL=YES ;; 113 # STUB 114 --with-imap) 115 MAIL=YES 116 NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG 117 $0: warning: the "--with-imap" option is deprecated, 118 use the "--with-mail" option instead" 119 ;; 120 --with-imap_ssl_module) 121 MAIL_SSL=YES 122 NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG 123 $0: warning: the "--with-imap_ssl_module" option is deprecated, 124 use the "--with-mail_ssl_module" option instead" 125 ;; 126 --without-mail_pop3_module) MAIL_POP3=NO ;; 127 --without-mail_imap_module) MAIL_IMAP=NO ;; 128 --without-mail_smtp_module) MAIL_SMTP=NO ;; 129 130 --with-stream) STREAM=YES ;; 131 --with-stream=dynamic) STREAM=DYNAMIC ;; 132 --with-stream_ssl_module) STREAM_SSL=YES ;; 133 --without-stream_limit_conn_module) 134 STREAM_LIMIT_CONN=NO ;; 135 --without-stream_access_module) STREAM_ACCESS=NO ;; 136 --without-stream_upstream_hash_module) 137 STREAM_UPSTREAM_HASH=NO ;; 138 --without-stream_upstream_least_conn_module) 139 STREAM_UPSTREAM_LEAST_CONN=NO ;; 140 --without-stream_upstream_zone_module) 141 STREAM_UPSTREAM_ZONE=NO ;; 142 143 --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;; 144 --with-cpp_test_module) NGX_CPP_TEST=YES ;; 145 146 --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;; 147 --add-dynamic-module=*) DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;; 148 149 --with-cc=*) CC="$value" ;; 150 --with-cpp=*) CPP="$value" ;; 151 --with-cc-opt=*) NGX_CC_OPT="$value" ;; 152 --with-ld-opt=*) NGX_LD_OPT="$value" ;; 153 --with-cpu-opt=*) CPU="$value" ;; 154 --with-debug) NGX_DEBUG=YES ;; 155 156 --without-pcre) USE_PCRE=DISABLED ;; 157 --with-pcre) USE_PCRE=YES ;; 158 --with-pcre=*) PCRE="$value" ;; 159 --with-pcre-opt=*) PCRE_OPT="$value" ;; 160 --with-pcre-jit) PCRE_JIT=YES ;; 161 162 --with-openssl=*) OPENSSL="$value" ;; 163 --with-openssl-opt=*) OPENSSL_OPT="$value" ;; 164 165 --with-md5=*) MD5="$value" ;; 166 --with-md5-opt=*) MD5_OPT="$value" ;; 167 --with-md5-asm) MD5_ASM=YES ;; 168 169 --with-sha1=*) SHA1="$value" ;; 170 --with-sha1-opt=*) SHA1_OPT="$value" ;; 171 --with-sha1-asm) SHA1_ASM=YES ;; 172 173 --with-zlib=*) ZLIB="$value" ;; 174 --with-zlib-opt=*) ZLIB_OPT="$value" ;; 175 --with-zlib-asm=*) ZLIB_ASM="$value" ;; 176 177 --with-libatomic) NGX_LIBATOMIC=YES ;; 178 --with-libatomic=*) NGX_LIBATOMIC="$value" ;; 179 180 --test-build-devpoll) NGX_TEST_BUILD_DEVPOLL=YES ;; 181 --test-build-eventport) NGX_TEST_BUILD_EVENTPORT=YES ;; 182 --test-build-epoll) NGX_TEST_BUILD_EPOLL=YES ;; 183 --test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;; 184 185 *) 186 echo "$0: error: invalid option "$option"" 187 exit 1 188 ;; 189 esac 190 done 191 192 193 NGX_CONFIGURE="$opt"
3.help选项输出
1 if [ $help = yes ]; then 2 3 cat << END 4 5 --help print this message 6 7 --prefix=PATH set installation prefix 8 --sbin-path=PATH set nginx binary pathname 9 --modules-path=PATH set modules path 10 --conf-path=PATH set nginx.conf pathname 11 --error-log-path=PATH set error log pathname 12 --pid-path=PATH set nginx.pid pathname 13 --lock-path=PATH set nginx.lock pathname 14 15 --user=USER set non-privileged user for 16 worker processes 17 --group=GROUP set non-privileged group for 18 worker processes 19 20 --build=NAME set build name 21 --builddir=DIR set build directory 22 23 --with-select_module enable select module 24 --without-select_module disable select module 25 --with-poll_module enable poll module 26 --without-poll_module disable poll module 27 28 --with-threads enable thread pool support 29 30 --with-file-aio enable file AIO support 31 --with-ipv6 enable IPv6 support 32 33 --with-http_ssl_module enable ngx_http_ssl_module 34 --with-http_v2_module enable ngx_http_v2_module 35 --with-http_realip_module enable ngx_http_realip_module 36 --with-http_addition_module enable ngx_http_addition_module 37 --with-http_xslt_module enable ngx_http_xslt_module 38 --with-http_xslt_module=dynamic enable dynamic ngx_http_xslt_module 39 --with-http_image_filter_module enable ngx_http_image_filter_module 40 --with-http_image_filter_module=dynamic 41 enable dynamic ngx_http_image_filter_module 42 --with-http_geoip_module enable ngx_http_geoip_module 43 --with-http_geoip_module=dynamic enable dynamic ngx_http_geoip_module 44 --with-http_sub_module enable ngx_http_sub_module 45 --with-http_dav_module enable ngx_http_dav_module 46 --with-http_flv_module enable ngx_http_flv_module 47 --with-http_mp4_module enable ngx_http_mp4_module 48 --with-http_gunzip_module enable ngx_http_gunzip_module 49 --with-http_gzip_static_module enable ngx_http_gzip_static_module 50 --with-http_auth_request_module enable ngx_http_auth_request_module 51 --with-http_random_index_module enable ngx_http_random_index_module 52 --with-http_secure_link_module enable ngx_http_secure_link_module 53 --with-http_degradation_module enable ngx_http_degradation_module 54 --with-http_slice_module enable ngx_http_slice_module 55 --with-http_stub_status_module enable ngx_http_stub_status_module 56 57 --without-http_charset_module disable ngx_http_charset_module 58 --without-http_gzip_module disable ngx_http_gzip_module 59 --without-http_ssi_module disable ngx_http_ssi_module 60 --without-http_userid_module disable ngx_http_userid_module 61 --without-http_access_module disable ngx_http_access_module 62 --without-http_auth_basic_module disable ngx_http_auth_basic_module 63 --without-http_autoindex_module disable ngx_http_autoindex_module 64 --without-http_geo_module disable ngx_http_geo_module 65 --without-http_map_module disable ngx_http_map_module 66 --without-http_split_clients_module disable ngx_http_split_clients_module 67 --without-http_referer_module disable ngx_http_referer_module 68 --without-http_rewrite_module disable ngx_http_rewrite_module 69 --without-http_proxy_module disable ngx_http_proxy_module 70 --without-http_fastcgi_module disable ngx_http_fastcgi_module 71 --without-http_uwsgi_module disable ngx_http_uwsgi_module 72 --without-http_scgi_module disable ngx_http_scgi_module 73 --without-http_memcached_module disable ngx_http_memcached_module 74 --without-http_limit_conn_module disable ngx_http_limit_conn_module 75 --without-http_limit_req_module disable ngx_http_limit_req_module 76 --without-http_empty_gif_module disable ngx_http_empty_gif_module 77 --without-http_browser_module disable ngx_http_browser_module 78 --without-http_upstream_hash_module 79 disable ngx_http_upstream_hash_module 80 --without-http_upstream_ip_hash_module 81 disable ngx_http_upstream_ip_hash_module 82 --without-http_upstream_least_conn_module 83 disable ngx_http_upstream_least_conn_module 84 --without-http_upstream_keepalive_module 85 disable ngx_http_upstream_keepalive_module 86 --without-http_upstream_zone_module 87 disable ngx_http_upstream_zone_module 88 89 --with-http_perl_module enable ngx_http_perl_module 90 --with-http_perl_module=dynamic enable dynamic ngx_http_perl_module 91 --with-perl_modules_path=PATH set Perl modules path 92 --with-perl=PATH set perl binary pathname 93 94 --http-log-path=PATH set http access log pathname 95 --http-client-body-temp-path=PATH set path to store 96 http client request body temporary files 97 --http-proxy-temp-path=PATH set path to store 98 http proxy temporary files 99 --http-fastcgi-temp-path=PATH set path to store 100 http fastcgi temporary files 101 --http-uwsgi-temp-path=PATH set path to store 102 http uwsgi temporary files 103 --http-scgi-temp-path=PATH set path to store 104 http scgi temporary files 105 106 --without-http disable HTTP server 107 --without-http-cache disable HTTP cache 108 109 --with-mail enable POP3/IMAP4/SMTP proxy module 110 --with-mail=dynamic enable dynamic POP3/IMAP4/SMTP proxy module 111 --with-mail_ssl_module enable ngx_mail_ssl_module 112 --without-mail_pop3_module disable ngx_mail_pop3_module 113 --without-mail_imap_module disable ngx_mail_imap_module 114 --without-mail_smtp_module disable ngx_mail_smtp_module 115 116 --with-stream enable TCP/UDP proxy module 117 --with-stream=dynamic enable dynamic TCP/UDP proxy module 118 --with-stream_ssl_module enable ngx_stream_ssl_module 119 --without-stream_limit_conn_module disable ngx_stream_limit_conn_module 120 --without-stream_access_module disable ngx_stream_access_module 121 --without-stream_upstream_hash_module 122 disable ngx_stream_upstream_hash_module 123 --without-stream_upstream_least_conn_module 124 disable ngx_stream_upstream_least_conn_module 125 --without-stream_upstream_zone_module 126 disable ngx_stream_upstream_zone_module 127 128 --with-google_perftools_module enable ngx_google_perftools_module 129 --with-cpp_test_module enable ngx_cpp_test_module 130 131 --add-module=PATH enable external module 132 --add-dynamic-module=PATH enable dynamic external module 133 134 --with-cc=PATH set C compiler pathname 135 --with-cpp=PATH set C preprocessor pathname 136 --with-cc-opt=OPTIONS set additional C compiler options 137 --with-ld-opt=OPTIONS set additional linker options 138 --with-cpu-opt=CPU build for the specified CPU, valid values: 139 pentium, pentiumpro, pentium3, pentium4, 140 athlon, opteron, sparc32, sparc64, ppc64 141 142 --without-pcre disable PCRE library usage 143 --with-pcre force PCRE library usage 144 --with-pcre=DIR set path to PCRE library sources 145 --with-pcre-opt=OPTIONS set additional build options for PCRE 146 --with-pcre-jit build PCRE with JIT compilation support 147 148 --with-md5=DIR set path to md5 library sources 149 --with-md5-opt=OPTIONS set additional build options for md5 150 --with-md5-asm use md5 assembler sources 151 152 --with-sha1=DIR set path to sha1 library sources 153 --with-sha1-opt=OPTIONS set additional build options for sha1 154 --with-sha1-asm use sha1 assembler sources 155 156 --with-zlib=DIR set path to zlib library sources 157 --with-zlib-opt=OPTIONS set additional build options for zlib 158 --with-zlib-asm=CPU use zlib assembler sources optimized 159 for the specified CPU, valid values: 160 pentium, pentiumpro 161 162 --with-libatomic force libatomic_ops library usage 163 --with-libatomic=DIR set path to libatomic_ops library sources 164 165 --with-openssl=DIR set path to OpenSSL library sources 166 --with-openssl-opt=OPTIONS set additional build options for OpenSSL 167 168 --with-debug enable debug logging 169 170 END 171 172 exit 1 173 fi
4.其他
1 if [ ".$NGX_PLATFORM" = ".win32" ]; then 2 NGX_WINE=$WINE 3 fi 4 5 6 NGX_SBIN_PATH=${NGX_SBIN_PATH:-sbin/nginx} 7 NGX_MODULES_PATH=${NGX_MODULES_PATH:-modules} 8 NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf} 9 NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH` 10 NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid} 11 NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock} 12 13 if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then 14 NGX_ERROR_LOG_PATH= 15 else 16 NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log} 17 fi 18 19 NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log} 20 NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp} 21 NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp} 22 NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp} 23 NGX_HTTP_UWSGI_TEMP_PATH=${NGX_HTTP_UWSGI_TEMP_PATH:-uwsgi_temp} 24 NGX_HTTP_SCGI_TEMP_PATH=${NGX_HTTP_SCGI_TEMP_PATH:-scgi_temp} 25 26 case ".$NGX_PERL_MODULES" in 27 ./*) 28 ;; 29 30 .) 31 ;; 32 33 *) 34 NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES 35 ;; 36 esac