logrotate and compile fixes
This commit is contained in:
parent
5b5e6e33a6
commit
14ec9f3e63
|
@ -33,7 +33,7 @@ VERSION="1.18.0"
|
|||
wget https://nginx.org/download/nginx-${VERSION}.tar.gz
|
||||
tar -xvzf nginx-${VERSION}.tar.gz
|
||||
cd nginx-${VERSION}
|
||||
./auto/configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx/nginx.pid --modules-path=/usr/lib/nginx/modules --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --add-module=/tmp/ModSecurity-nginx --add-module=/tmp/headers-more-nginx-module --add-module=/tmp/ngx_http_geoip2_module --add-module=/tmp/nginx_cookie_flag_module
|
||||
./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx/nginx.pid --modules-path=/usr/lib/nginx/modules --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --add-module=/tmp/ModSecurity-nginx --add-module=/tmp/headers-more-nginx-module --add-module=/tmp/ngx_http_geoip2_module --add-module=/tmp/nginx_cookie_flag_module
|
||||
make -j $NTASK
|
||||
make install
|
||||
strip /usr/sbin/nginx
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
# remove old logs after X days
|
||||
maxage %LOGROTATE_MAXAGE%
|
||||
rotate %LOGROTATE_MAXAGE%
|
||||
|
||||
# no errors if a file is missing
|
||||
missingok
|
||||
|
|
Loading…
Reference in New Issue