AWS + Linux Combo — Part 6: Web Servers

Most servers exist to serve something — websites, APIs, dashboards. Linux runs those services.

Install Nginx


sudo apt update
sudo apt install nginx -y

Start & Enable Service


sudo systemctl start nginx
sudo systemctl enable nginx

Check Status


sudo systemctl status nginx

Logs Location


/var/log/nginx/access.log
/var/log/nginx/error.log

Important Thinking

If your website is not opening, think in this order:

Next: Monitoring, Logs & Alerts →
Disclaimer:
Always check logs before restarting services.