Running Cascade HTTP

To run the server, simply invoke the java interpreter with the name of the server class uk.co.demon.cascade.http.HTTPServer, and the location of the configuration file.

    java uk.co.demon.cascade.http.HTTPServer www.conf

Note that you will need to ensure that zip file containing the server classes in included in the CLASSPATH. This can be done either setting the the CLASSPATH environment variable, or as a command line parameter to the Java interpreter.

Sample Scripts to Run the Server

Unix

    #!/bin/sh
    CLASSPATH=/home/davidw/java/classes:/home/davidw/java/HTTPServer:$CLASSPATH
    export CLASSPATH
    exec java $* uk.co.demon.cascade.http.HTTPServer www.conf

Windows 95/NT

    java -classpath h:\java\classes;d:\java\lib\classes.zip 
        uk.co.demon.cascade.http.HTTPServer www.conf

Properties

The following properties can be set on the command line via the -D option:

debug

    -Ddebug=1

This parameter causes debug information to be written to standard output.

verbose

    -Dverbose=1

This parameter causes extra information about what the server is doing to be written to standard output. It is useful in order to see what happens when processing requests, and also when testing new configuration files.