Set --modules-path.
This commit is contained in:
parent
45f979e0b7
commit
6fe64aba04
2 changed files with 3 additions and 7 deletions
|
@ -217,6 +217,7 @@ fi
|
|||
./configure \
|
||||
--prefix=/usr/share/nginx \
|
||||
--conf-path=/etc/nginx/nginx.conf \
|
||||
--modules-path=/etc/nginx/modules \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--lock-path=/var/lock/nginx.lock \
|
||||
|
@ -238,11 +239,6 @@ fi
|
|||
&& make || exit 1 \
|
||||
&& make install || exit 1
|
||||
|
||||
if [[ ${ARCH} == "x86_64" ]]; then
|
||||
mkdir -p /etc/nginx/modules/
|
||||
cp objs/ngx_http_modsecurity_module.so /etc/nginx/modules/
|
||||
fi
|
||||
|
||||
echo "Cleaning..."
|
||||
|
||||
cd /
|
||||
|
|
|
@ -12,11 +12,11 @@ load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
|
|||
{{ end }}
|
||||
|
||||
{{ if $cfg.EnableOpentracing }}
|
||||
load_module modules/ngx_http_opentracing_module.so;
|
||||
load_module /etc/nginx/modules/ngx_http_opentracing_module.so;
|
||||
{{ end }}
|
||||
|
||||
{{ if (and $cfg.EnableOpentracing (ne $cfg.ZipkinCollectorHost "")) }}
|
||||
load_module modules/ngx_http_zipkin_module.so;
|
||||
load_module /etc/nginx/modules/ngx_http_zipkin_module.so;
|
||||
{{ end }}
|
||||
|
||||
daemon off;
|
||||
|
|
Loading…
Reference in a new issue