Searching...
Wednesday, 6 February 2013

What is a webserver?

A web server can mean two things - a computer on which a web site is hosted and a program that runs on such a computer. So the term web server refers to both hardware and software. We'll look at these two one by one.
What is a web server? Is it hard ware or software? BOTH!

The web server computer - the hardware

A web site is a collection of web pages which are digital files generally written using HyperText Markup Language (HTML). For a web site to be available to everyone in the world at all times, it need to be stored or "hosted" on a computer that is connected to the internet 24/7/365. Such a computer is known as a Web Server (note the first letter is in uppercase).

You can potentially host a web site on your home computer but this involves a lot of work and constant monitoring. It is easier to "buy" web hosting from a company because there are thousands that offer this service at reasonable prices. A brief on one of the best companies is at the end of the article - you can not only get web hosting but also a domain name and a web site really cheap!

There are several requirements for a Server computer - it needs to be fast, have a large storage capacity hard disk and lots of RAM. But the most important is having a permanent internet address also known as an I.P. (Internet protocol) address. If the I.P. address changes, the web site would not be found and will appear offline - the browser will display a cannot find web site error. For details, read differences between your home computer and a web Server.

The web server program - the software

A web server program is software that runs on the web site hosting Server computer. Its main purpose is serving web pages; which means it waits for requests from web browsers (also known as clients) and responds by sending the required data back. This client-server interaction is the hallmark of how the web works.

What is the role of web server on the Internet?


Web servers - the computer or the program - have a vital role on the Internet. The Server machine hosts (stores) the web site on its hard disk while the server program helps deliver the web pages and their associated files like images, flash movies etc. to clients (browsers).

The process of loading a web site/page in a web browser starts with the user either entering the URL in the address bar or clicking on a link. You should know that each web page has a unique address (or URL) on the internet; which means the same page cannot exist in two places. (If a copy does exist in another location, its address would be different from that of the original).

Once the appropriate action has been initiated by the user, the browser sends out a request for the web page. Behind the scenes, the URL of the requested web page is resolved into an I.P. address, which, in English, means, converted to an I.P. address - something that computers understand. The I.P. address points to the location of the web site host. The request is forwarded to Server computer and passed on to the server software.

The server software now gets to work and hunts for the requested web page on the hard disk. On finding the file, it sends a response to the browser followed the actual web page file which then starts displaying the page.

A typical web page not only has text but also embedded multimedia elements like images and Flash animation. These "extra" files are separate from the actual web page and are fetched by the browser from the Server one by one. Note (and an important one), ONLY the web browser determines how a web page is displayed; the web server has no control over this. The job of the web server ends once the requests from the browser are processed and the required information is sent.

Though it might seem that the request-and-response process takes a lot of time, especially when you consider that the client and server computers might be thousands of miles apart, it actually happens very fast. That's because of the HyperText Transfer Protocol (HTTP) which is a set of rules developed by the "big lads" to facilitate the transfer of data over the internet.

0 comments:

Post a Comment

 
Back to top!