Skip to content

Instantly share code, notes, and snippets.

@philiparthurmoore
Forked from Globegitter/nginx-latest.sh
Created October 26, 2015 03:11
Show Gist options
  • Save philiparthurmoore/3bff87ddfd2a267fa728 to your computer and use it in GitHub Desktop.
Save philiparthurmoore/3bff87ddfd2a267fa728 to your computer and use it in GitHub Desktop.
Install the latest nginx from source for Ubuntu 14.04
#Install the PCRE library needed by nginx
sudo apt-get install libpcre3 libpcre3-dev
#Replace by the latest version number found on http://nginx.org/
wget http://nginx.org/download/nginx-1.7.4.tar.gz
tar -xvf nginx-1.7.4.tar.gz
cd nginx-1.7.4
##these flags make sure to put nginx somewhere that is usuall in PATH and to activate the https module
./configure --sbin-path=/usr/local/sbin --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