How does Web Sever Work
Web servers are the backbone of the web, since they are responsible for serving up every web page you see. It takes a lot of work to do something as simple as display a web page. When you clicked on the link to view this article, a series of smaller operations commenced which, while each is small on their own, all fit together to bring you this brilliantly written composition.
Web Servers are nothing but computers performing routing and serving work. They are located in specific location and have high speed connection. They store database for a website. Web servers are computers that allow people to access them via the World Wide Web. On them are specially formatted files commonly called Web Pages. When you access a website, your computer and the web server are connected together, sharing information.
There are two main types of servers that use State and maintain information sent back and forth from the server, and Stateless — all the information comes in at once. When you typed in the website above, your web browser broke the URL into three different pieces.
The first part is the protocol that the web server should communicate with. In this example, the protocol is “http”. This tells the web browser that you wish to communicate with a web server on port 80, which is the port reserved for web page communications.
The second part of the URL is the server address. This tells the web browser which server it needs to contact in order to retrieve the information you are looking for. The web browser communicates with a domain name server (DNS) to find out the IP Address for the website.
The third part of the URL is the resource you want to see.
The following steps explain how a web server and web application server work together to process a page request:
A computer that delivers Web pages and work with http protocol. Every Web server has an IP address and possibly a domain name. For example, if you enter the URL http://www.abcg.com/index.html in your browser, this sends a request to the server whose domain name is pcwebopedia.com. The server then fetches the page named index.html and sends it to your browser.
* The user requests a page by typing a URL in a browser, and the web server receives the request.
* The web server looks at the file extension to determine whether a web application server must process the page. Then, one of the following actions occur:
* If the user requests a file that is a simple web page (often one with an HTM or HTML extension), the web server fulfills the request and sends the file to the browser.
* If the user requests a file that is a page that a web application server must process (one with a CFM, CFML, or CFC extension for Cold Fusion requests), the web server passes the request to the web application server. The web application server processes the page and sends the results to the web server, which returns those results to the browser. The following figure shows this process:
* Because web application servers interpret programming instructions and generate output that a web browser can interpret, they let web developers build highly interactive and data-rich websites.