Changes between Version 8 and Version 9 of WebServerExample


Ignore:
Timestamp:
12/08/14 17:20:28 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebServerExample

    v8 v9  
    9292One of the key things to keep in mind in building your web server is that the server is translating relative filenames (such as `index.html`) to absolute filenames in a local filesystem.  For example, you might decide to keep all the files for your server in ~10abc/cs339/server/files/, which we call the document root.  When your server gets a request for `index.html` (which is the default web page if no file is specified), it will prepend the document root to the specified file and determine if the file exists, and if the proper permissions are set on the file (typically the file has to be world readable).  If the file does not exist, a file not found error is returned.  If a file is present but the proper permissions are not set, a permission denied error is returned.  Otherwise, an HTTP OK message is returned along with the contents of a file.
    9393
    94 In our setup we are using the [http://httpd.apache.org/ Apache web server]. The default document root for Apache on a host running Fedora 10 is under `/var/www/html`.
     94In our setup we are using the [http://httpd.apache.org/ Apache web server]. The default document root for Apache on a host running Ubuntu 12 is under `/var/www`.
    9595  * Login to the `Server` host
    9696  * Run