summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorIgor Ippolitov <iippolitov@nginx.com>2020-11-19 16:59:00 +0000
committerIgor Ippolitov <iippolitov@nginx.com>2020-11-19 16:59:00 +0000
commit7e1637a31631955aec753365c7149c64b216d47e (patch)
tree6472e10441473f30e95bd0b64a39b2335e308699 /auto
parent23597e97f52316ef024796c5f1b5ca0d70ecff31 (diff)
downloadnginx-7e1637a31631955aec753365c7149c64b216d47e.tar.gz
Core: "-e" command line option.
When installing or running from a non-root user it is sometimes required to override default, compiled in error log path. There was no way to do this without rebuilding the binary (ticket #147). This patch introduced "-e" command line option which allows one to override compiled in error log path.
Diffstat (limited to 'auto')
-rwxr-xr-xauto/configure4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto/configure b/auto/configure
index 7e6e33a7c..474d69e84 100755
--- a/auto/configure
+++ b/auto/configure
@@ -87,6 +87,10 @@ have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
+if [ ".$NGX_ERROR_LOG_PATH" = "." ]; then
+ have=NGX_ERROR_LOG_STDERR . auto/have
+fi
+
have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
. auto/define