Skip to content

Instantly share code, notes, and snippets.

@deHelden
Last active October 7, 2019 16:34
Show Gist options
  • Save deHelden/114c65f1ab301167f8f057371311c1bc to your computer and use it in GitHub Desktop.
Save deHelden/114c65f1ab301167f8f057371311c1bc to your computer and use it in GitHub Desktop.
Nginx setup from binary
sudo apt update
sudo apt install build-essential
wget https://nginx.org/download/nginx-1.17.4.tar.gz
tar -xzvf nginx-1.17.4.tar.gz
cd nginx-1.17.4
sudo apt install libssl-dev openssl build-essential zlib1g-dev libpcre3 libpcre3-dev zlibc unzip
./configure --sbin-path=/usr/bin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --with-http_ssl_module
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment