Interactive tutorial

How Web Servers Work: HTTP Requests, Ports, and Virtual Hosts

Learn how a browser reaches a web server, how ports identify listening services, and how one server can host multiple websites. You will read simple HTTP messages, explain hostname-based routing and HTTPS, inspect a browser request, and use evidence to distinguish common connection and website errors. No coding or server installation is required.

  • Level: Beginner
  • Duration: approx. 28 min
  • 9 steps
How Web Servers Work: HTTP Requests, Ports, and Virtual Hosts

What you will go through

  1. Step 1 of 9 2 min Follow a Browser Request Follow a simplified browser visit from DNS lookup to web server response.
  2. Step 2 of 9 3 min Read URLs and Understand Ports Read URL components and connect a destination port to a matching listener.
  3. Step 3 of 9 3 min Read an HTTP Request Read the essential parts of an HTTP/1.1 GET request and translate a URL into a request excerpt.
  4. Step 4 of 9 3 min Understand the Server's Response Read the parts of an HTTP response and distinguish success, redirects, HTTP errors, and connection failure.
  5. Step 5 of 9 4 min See How Virtual Hosts Share a Server Predict which site handles a request when virtual hosts share an IP address and port.
  6. Step 6 of 9 3 min Add HTTPS to the Routing Picture Trace an HTTP/1.1 over TCP HTTPS visit through connection, TLS setup and the HTTP exchange, and distinguish certificate problems from HTTP responses.
  7. Step 7 of 9 4 min Inspect a Request in Your Browser Find a document request and distinguish browser observations from a port inferred from the URL.
  8. Step 8 of 9 3 min Find the Stage That Failed Use request-flow evidence to identify likely failure stages and choose cautious next checks.
  9. Step 9 of 9 4 min Trace Two Websites from URL to Response Apply the complete request-routing model to two websites sharing an address.

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate