Skip to content

Instantly share code, notes, and snippets.

@lechidung
Created April 24, 2020 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lechidung/08f8988359961c8585fcef1a502ccebd to your computer and use it in GitHub Desktop.
Save lechidung/08f8988359961c8585fcef1a502ccebd to your computer and use it in GitHub Desktop.
Install nginx and configure

Install Nginx

sudo apt-get update
sudo apt-get install nginx

Adjust the Firewall

sudo ufw app list // Show list the applications configurations
sudo ufw allow 'Nginx Full' // opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
sudo ufw status // Verify the change
systemctl status nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment