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.comand the document root is namedtopdocs, 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:
| Directory | Purpose |
|---|---|
conf | Configuration information. |
logs | To store what has happened. |
cgi-bin | Executable 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.