What Is a Web Server?
A web server stores and delivers the content for a website – such as text, images, video, and application data – to clients that request it. The most common type of client is a web browser, which requests data from your website when a user clicks on a link or downloads a document on a page displayed in the browser.
A web server might also cache content to speed delivery of commonly requested content. This process is also known as web acceleration.
Do Web Servers Need Public IP Addresses?
In order to be accessed by users outside its network, a web server needs a public IP address. To improve security, however, web servers are often “hidden” behind a proxy or load balancer. Most large sites have multiple web servers with load balancer to distribute traffic across them. It’s also possible for multiple websites to share the public IP address of a single web server, and the load balancer then uses information in the request URL to determines which site the client request receives the client request.
Load Balancing and Web Servers
Load balancers can improve performance and reliability by distributing the workload across multiple servers. When a load balancer is integrated into your infrastructure, a request first goes to the load balancer, which directs it to the correct backend server. In choosing a server, the load balancer first checks which server are responding appropriately to requests. Then, it uses a preconfigured rule to select from among the pool of healthy servers.