Let's begin with the configuration:
- Adjust the firewall to allow the traffic just in port 80. To list the available application configurations, we run the following command:
sudo ufw app list Available applications: Nginx Full Nginx HTTP Nginx HTTPS OpenSSH
- Nginx Full means that we will allow the traffic from ports 80 (HTTP) and 443 (HTTPS). At this point, we haven't configured any domain with SSL, so we should restrict the traffic to pass just through port 80 (HTTP):
sudo ufw allow 'Nginx HTTP'
- If we try to access our IP, we should see our Nginx working:
- If you want to administrate the process of Nginx, you can ...