Web Servers

What is a Web Server

A web Server is a combination of both hardware and software working together. On the hardware side, it stores the website's components like HTML markup, CSS styling images, and javascript logic and on the software side, it works on HTTP requests (stands for Hyper Text Transfer Protocol) that allow us to navigate the specific page of the website. Whenever we need information through a web server we hit the request through a URL or HTTP request and the web browser listens to that request and sends back to us our desired response which is shown in the below diagram.

Basic representation of a client/server connection through HTTP

What Web Server serves

Web Server serves us the following components.

  • Listens

  • On a port

  • for a request

  • sent via a transfer protocol

  • and return a response

  • containing the desired request