1. Requirements
- Ubuntu 22.04 or 24.04
- sudo/root SSH access
- Domain A record ready (optional but recommended)
- Ports 80 and 443 open
2. Install Nginx
- sudo apt update
- sudo apt install -y nginx
- sudo systemctl enable --now nginx
- sudo systemctl status nginx
3. Allow firewall access
- If using UFW: sudo ufw allow OpenSSH
- sudo ufw allow 'Nginx Full'
- sudo ufw enable (only if you already allowed SSH)
4. Create a simple website
- Create folder: sudo mkdir -p /var/www/yourdomain.com/html
- Add an index.html file in that folder
- Create a server block in /etc/nginx/sites-available/yourdomain.com
- Enable it: sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
- Test config: sudo nginx -t
- Reload: sudo systemctl reload nginx
5. Add SSL next
- Install Certbot Nginx plugin
- Run: sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
- Force HTTPS redirect when asked
6. Useful checks
- Visit http://YOUR_IP and http://yourdomain.com
- Check error log: sudo tail -f /var/log/nginx/error.log
- If 502 later with apps, check upstream service is running
7. Why this matters for mail businesses
Use Nginx for your site, docs, and downloads. Use Px Mailer for outbound campaign operations. A clean website + secure HTTPS improves trust before people buy tools or licenses. Px Mailer: https://pxtoolx.com



