You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/OPS_REFERENCE.md
+57-2Lines changed: 57 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,13 +50,19 @@ sudo ss -ltnp 'sport = :80'
50
50
# Check all listening ports
51
51
sudo ss -ltnp
52
52
53
-
# Test local connectivity
53
+
# Test local connectivity (use GET, not HEAD)
54
+
curl http://localhost/
55
+
56
+
# HEAD requests return 405 - this is normal!
54
57
curl -I http://localhost/
58
+
# Returns: HTTP/1.1 405 Method Not Allowed (expected behavior)
55
59
56
60
# Test from outside (replace with your IP)
57
-
curl -I http://YOUR_EC2_IP/
61
+
curl http://YOUR_EC2_IP/
58
62
```
59
63
64
+
**Note:** The FastAPI root endpoint only accepts GET requests. If you use `curl -I` (HEAD request), you'll get a 405 "Method Not Allowed" response. This doesn't mean the app is broken - use `curl http://localhost/` instead to see the actual HTML response.
0 commit comments