Web Servers and Services

What is a Web site? Quite simply, a Web site is a collection of files on a hard drive of a Web server. A domain name supplies two things: the logical name of the site, and the address of the server where the files are located.

What is a Web Server? A Web server is just a computer (often running Linux) with a lot of hard drive space and a fast Internet connection. It maintains a mapping between domain names and the actual files on its hard drives, and it serves up those files when requested by a Web browser (or other programs). Web servers run several special programs that allow them to serve as Web servers:

This diagram shows the basic styles of interactions between users and a Web server.

Site Mechanics: Working with Your Web Server

This diagram shows a conceptual view of how a Web browser connects to a Web server, as well as how a user can privately interact with a Web server to transfer files and access services. Above the line, a user’s Web browser interacts with any Web server on the Web using a protocol called HTTP. The browser sends requests to the Web server, and it responds with HTML pages. Notice, though, that the Web server can call on many services besides its own hard drive. These other services actually create the HTML as it is requested, rather than using static pages that change rarely.

Below the line, however, a user with the proper permissions can connect to the private side of a Web server, and directly access the Web server’s hard drive and other services (such as MySQL databases).

Recommended Directory Structure for Web Sites

Local vs Remote

The typical model of working with a Web site is to have the Master site files on your hard drive, and then place a copy of the Master site on a Web server (another computer). Using manual (FTP) or automated (Dreamweaver) means, you can then synchronize the master site with the copy of the site on your Web server. When testing your site, you can either test directly from your hard drive, or you can upload the files to your Web server for testing. If you don’t use any server-side technologies like PHP, then reading the HTML from your hard drive is exactly like reading the HTML from the Web server.

The key thing to remember to avoid overwriting your files: Left = Local • Right = Remote!

 

CIS86 HomeContact DFFSiteMap • © 2009, Dennis F. Freeze