Install and start
sudo apt update
sudo apt install -y nginx
sudo systemctl enable --now nginx
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
The two ufw lines matter only if the firewall is on.
Check
curl -I http://YOUR.SERVER.IP
"HTTP/1.1 200 OK" means it answers. Your site's files go in /var/www/html.
Where a command has YOUR.SERVER.IP, put the address of your server — it is on the server page in the console. Ask Joy Ops AI the same question in the console and it fills your own address in.
Stuck? Ask Joy Ops AI in your console, or open a ticket — a person answers.
Was this article helpful?
Corrections and suggestions go straight to the team that wrote it — suggest an edit or see more in blog.
Corrections and suggestions go straight to the team that wrote it — suggest an edit or see more in blog.