Skip to content

Instantly share code, notes, and snippets.

@whaleinvasion
Forked from rahul286/nginx-plus-install.sh
Created April 28, 2017 08:00
Show Gist options
  • Save whaleinvasion/f88f41587dbd9f32bffab946a46d9fb9 to your computer and use it in GitHub Desktop.
Save whaleinvasion/f88f41587dbd9f32bffab946a46d9fb9 to your computer and use it in GitHub Desktop.
nginx-plus installation
mkdir /etc/ssl/nginx
wget -P /etc/ssl/nginx/ https://cs.nginx.com/static/files/CA.crt
## move nginx-repo.crt to /etc/ssl/nginx/nginx-repo.crt
## move nginx-repo.key to /etc/ssl/nginx/nginx-repo.key
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
apt-get install apt-transport-https libgnutls26 libcurl3-gnutls
printf "deb https://plus-pkgs.nginx.com/ubuntu `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list
mv /etc/apt/apt.conf.d
wget -P /etc/apt/apt.conf.d https://cs.nginx.com/static/files/90nginx
apt-get update
apt-get install nginx-plus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment