HTTP service handbook
Check DNS, confirm HTTPS, and diagnose common connection failures with standard command-line tools.
Quick start
Query DNS first, then inspect the HTTP response. A successful DNS lookup tells you which endpoint your resolver selected. The HTTPS request checks that the endpoint can serve a certificate and respond for the hostname.
dig +short docs.mooring.top A
curl -fsS -I https://docs.mooring.top/
Use the hostname in the URL so the client sends the expected TLS server name. To test a particular origin before a DNS change propagates, use curl's --resolve option with the intended address.
HTTP responses
- 200 OK
- The request succeeded and the content is available.
- 3xx Redirect
- Inspect the
Locationheader. Follow it withcurl -Lwhen the destination is expected. - 404 Not Found
- Check the requested path and its capitalization. A 404 shows that the server responded to that request.
- 5xx Server Error
- Check the application and reverse proxy logs for the request time, status, and upstream error.
TLS
Keep certificate verification enabled. Inspect the leaf certificate's issuer, subject, and expiration dates when a client reports a handshake error.
openssl s_client -connect docs.mooring.top:443 \
-servername docs.mooring.top </dev/null 2>/dev/null |
openssl x509 -noout -subject -issuer -dates
Troubleshooting
- Compare A and AAAA answers from the client and a public resolver.
- Check TCP connectivity to the resolved address on port 443.
- Verify that the certificate covers the requested hostname.
- If a request still fails, capture the timestamp, URL, and response code so the server logs can be correlated.