Prove the website is really deployed
Confirm that every layer of your deployment works as intended — from Amazon EC2 hardware status and network security groups to the Nginx daemon, file placement, and live public HTTP delivery.
Deployment Verification Checklist
Test each item systematically. Mark them off as you confirm their status in AWS and your terminal.
Verification Commands
Execute these standard diagnostics. The first three commands are run inside your Amazon Linux 2023 terminal over SSH. The last command is run from your personal computer to test external reachability.
What each command confirms:
sudo systemctl status nginx --no-pagerQueries the systemd daemon manager. Confirms Nginx is loaded and Active: active (running) without blocking your terminal prompt with a pager lock.
curl -I http://localhostPerforms a local loopback HTTP head request directly against port 80. Verifies Nginx accepts HTTP connections and serves the default or custom site locally.
ls -la /usr/share/nginx/htmlLists all files in the Nginx document web root. Confirms that index.html, stylesheets, and assets exist with public read permissions (-rw-r--r--).
curl -I http://YOUR_PUBLIC_IPSends an HTTP request across the public internet. Confirms that your AWS VPC Internet Gateway, subnet routing table, and Security Group port 80 rule allow external visitor traffic.
What Does HTTP 200 OK Mean?
When testing with curl -I, the web server replies with an HTTP status line. Here is how to interpret the response.
An HTTP status code of 200 OK indicates that your request reached the web server, the server located the requested document (index.html), and it successfully returned the headers and payload.
index.html in the web root.Using curl -I (head-only request) isolates network connectivity and web server health from browser quirks such as aggressive local caching or automatic HTTPS redirects.
What Does a Successful Deployment Look Like?
A successful deployment is not a single check — it is a verifiable pipeline of healthy infrastructure layers working together in harmony.
Sequential verification pipeline. Each milestone builds confidence before testing the next layer.
Key Signs Your Deployment Is 100% Successful
- Browser Address Bar: You navigated directly to
http://YOUR_PUBLIC_IP(plain HTTP, not HTTPS) and the page loaded immediately without connection timeouts or security certificate warnings. - Visual Integrity: The custom heading, logo, background styling, and interactive buttons appear exactly as designed — not the generic "Welcome to nginx!" placeholder page.
- Console & Network Cleanliness: Opening Developer Tools (F12) reveals zero red 404 network errors for CSS stylesheets, JavaScript files, or images.
- Independent Reachability: Opening the link on a secondary device (such as your smartphone on mobile data) displays the exact same website, proving global internet accessibility.
If a Check Fails, Start Here
Cloud deployments can fail at several distinct boundaries. Use this symptom matrix to identify which layer needs attention before changing random configurations.
| Symptom | Primary Check & Resolution |
|---|---|
EC2 is not Running Instance was stopped, terminated, or encountered a launch error. | Confirm instance state in the EC2 Console. If state is Stopped, select Instance state → Start instance. If launch failed, review AMI availability and instance quota. |
Status checks have not passed AWS hardware virtualization checks (System status check & Instance status check) are still initializing. | Wait 1–2 minutes after launch. Status checks typically take up to 3 minutes to reach "2/2 checks passed". If it remains impaired, view the Status Checks tab in EC2. |
Nginx is inactive Service was not started, failed during launch, or crashed. | Inspect service logs with "sudo systemctl status nginx". Verify installation with "sudo dnf install -y nginx", then run "sudo systemctl enable --now nginx". |
Local HTTP fails Nginx process is dead, misconfigured, or not listening on port 80. | Confirm Nginx is running and listening on port 80 with "sudo ss -tulpn | grep :80". Inspect error logs located at "/var/log/nginx/error.log". |
Local HTTP works but public HTTP fails Inbound network firewall rule is blocking traffic or wrong IP is being queried. | Verify your Security Group inbound rules allow HTTP on port 80 from 0.0.0.0/0 (Anywhere IPv4). Ensure you are navigating to the Public IPv4, not Private IPv4. |
The default Nginx page appears Starter website files were not copied to /usr/share/nginx/html/ or index.html was not overwritten. | Verify files inside the web root with "ls -la /usr/share/nginx/html". Copy the repository assets with "sudo cp -r * /usr/share/nginx/html/" and reload Nginx. |
The page loads but images or styles are missing Linux path or case mismatch (e.g. style.css vs Style.css), or missing subdirectories. | Linux file paths are strictly case-sensitive. Check directory structure with "ls -R /usr/share/nginx/html" and verify relative asset paths inside index.html. |
The public IP no longer works Instance was stopped and restarted, causing AWS to dynamically reassign a new public IPv4. | Check the EC2 Console for your instance's newly assigned Public IPv4 address. Standard EC2 public IPs change on instance stop/start unless an Elastic IP is associated. |
Ready for the Next Challenge?
Congratulations! By following this workbook, you have moved from understanding core cloud primitives to launching real compute hardware, provisioning network firewalls, installing a production web server, deploying website files, and verifying internet accessibility.
- VPC, subnets, and internet gateways
- Stateful security group firewall rules
- SSH cryptographic key authentication
- Linux package management and systemd services
- Nginx web server hosting and web root management
- Assign an Elastic IP so your address survives stops
- Attach a custom domain name using Amazon Route 53
- Issue a free SSL/TLS certificate with Let's Encrypt / Certbot
- Set up GitHub Actions to auto-deploy on git push
