NGINX Reverse Proxy Setup on Ubuntu 18.04.1
Installing a NGINX on Ubuntu from the Official NGINX Repository
1.- Download the key used to sign NGINX packages and add to APT
- sudo wget https://nginx.org/keys/nginx_signing.key
- sudo apt-key add nginx_signing.key
2.- Edit the /etc/apt/sources.list with vi and add the repo, (save the changes)
- sudo vi /etc/apt/sources.list
- deb https://nginx.org/packages/ubuntu/ bionic nginx
- deb-src https://nginx.org/packages/ubuntu/ bionic nginx
3.- Remove distribution NGINX, and add Official NGINX
- sudo apt-get remove nginx-common
- sudo apt-get update
- sudo apt-get install nginx
4.- Add NGINX to boot and start the service, check status
- sudo systemctl start nginx
- sudo systemctl enable nginx
- sudo systemctl status nginx
5.- Check NGINX correct functionality
HTTP/1.1 200 OK
Server: nginx/1.13.8
Comments
Post a Comment