Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14
Chapter 8

General Server Characteristics

Document root, server root, virtual hosts and proxy servers.


Document Root

  • Web servers have two separate directories.
  • The document root is the root directory of all servable documents.
  • Example: if the site is www.bloomers.com and the document root is named topdocs, stored in /admin/web, then the document directory is /admin/web/topdocs.
  • If a request URL is http://www.bloomers.com/bulbs/tulips.html, the server searches for /admin/web/topdocs/bulbs/tulips.html.
  • Servers can have virtual document trees — sometimes a different disk, possibly on a different machine, is used after the original disk is filled.

Server Root

The server root is the root directory for all the code that implements the server. It usually contains four items — the server code itself plus three subdirectories:

DirectoryPurpose
confConfiguration information.
logsTo store what has happened.
cgi-binExecutable scripts.

Other Server Services

  • Virtual hosts — multiple sites on the same system.
  • Proxy servers — to serve documents from the document roots of other sites.
  • Support for FTP, Gopher, News and email, in addition to HTTP.
  • Support for database access.