Hello @Ethan Bennett,
sudo apt update
sudo apt install nginx
Adjusting the Firewall- sudo ufw app list
You should get a listing of the application profiles:
OutputAvailable applications:
Nginx Full
Nginx HTTP
Nginx HTTPS
OpenSSH
sudo ufw allow 'Nginx HTTPS'
sudo ufw status
systemctl status nginx
Install Certbot and it’s Nginx plugin with apt
: sudo apt install certbot python3-certbot-nginx
To check, open the configuration file for your domain using nano
or your favorite text editor: sudo nano /etc/nginx/sites-available/example.com
Find the existing server_name
line. It should look like this:
...
server_name example.com www.example.com;
...
sudo nginx -t
sudo systemctl reload nginx
sudo ufw status
sudo certbot --nginx -d example.com -d www.example.com
If you have any further queries, do let us know.