CodeCharge Studio

Web Servers

Now that you have a better understanding of Internet connectivity, you should understand how an actual web site functions on the Internet.

When you surf the Internet, your browser acts as the client that connects to various web servers and displays the information returned from a server. Your computer can also act as a web server if you install and run a Web server application, such as Personal Web Server (PWS), IIS (Internet Information Services) or Apache.

The web server listens for incoming Hypertext Transfer Protocol (HTTP) requests and responds by sending back the appropriate information. HTTP is an Internet protocol that defines the format used to exchange information over the Internet. HTTP requests usually come from browsers in the form of a URL, which is then used by the web server to determine which file should be sent back to the browser, such as an HTML page or an image.

Many popular web servers are freely available. You can download Apache for Linux, Windows, or another platform from http://httpd.apache.org/. IIS is included in Windows 2000 and Windows XP Professional. PWS is available for Windows 95/98 and Windows NT. Although Windows XP Professional comes with a web server, unfortunately the Standard Windows XP doesn't come with a web server and setting one up is very tricky.

Once your web server is up and running, you should be able to access it by starting the browser on the same computer and using the URL http://localhost. You can also test the server from another browser by typing your computer's IP address as the URL. If your computer is on a local network within a company, you can ask your colleagues to try typing your computer's name into the address field in their browser. This should work as well and display the default web page setup during server installation.

See also:

Running Programs on a Web Server


On-line, printable versions and updates