build nginx

  nginx
apt-get install build-essential

apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

mkdir nginx_temp && cd nginx_temp

wget http://nginx.org/download/nginx-1.19.1.tar.gz

 tar xvfz nginx-1.19.1.tar.gz && cd nginx-1.19.1

./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=www-data --group=www-data --with-http_ssl_module --with-http_v2_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module

make && make install