
Some Tips and Tricks for nginx
Created:
Updated:
16 words · 1 minute reading time
Table of contents
You will find here some all day work tips for nginx.
Install nginx🔗
export codename=$( lsb_release -c|awk '{print $2}' )
export distri=$( lsb_release -i|awk '{print tolower($3)}' )
echo "deb http://nginx.org/packages/mainline/${distri}/ ${codename} nginx" > /etc/apt/sources.list.d/nginx.list
echo "deb-src http://nginx.org/packages/mainline/${distri}/ ${codename} nginx" >> /etc/apt/sources.list.d/nginx.list
curl -sS http://nginx.org/keys/nginx_signing.key|apt-key add
apt update
apt install nginx