Comanche is a simple web server for static HTML pages and CGI programs.
The Comanche web server is named after the Native American
ethnic group which drove the Apaches from the Southern Plains
Comanche can be called from a command window with:
comanche [-h | -?] [-p port] [-tls] [html-directory [cgi-directory]]
The 'html-directory' specifies the root directory for HTML files.
The default 'html-directory' is "../htdocs".
The 'cgi-directory' specifies the root directory for CGI scripts.
The default 'cgi-directory' is "../prg".
The default 'port' is 1080.
Example of a comanche usage:
When comanche is started it writes some information about
HTML directory: ../htdocs
CGI directory: ../prg
When the file "../htdocs/index.htm" exists you
can open it with http://localhost:1080/ in your browser.
The CGI program "../prg/cgiExample" can be opened with
http://localhost:1080/cgi-bin/cgiExample in your browser.
To stop comanche press CTRL-C. Comanche responds with
*** SIGNAL INTR RAISED
*** Program terminated.
Comanche is written in the Seed7 programming language and can be
downloaded as part of the Seed7 package.
To use comanche it is necessary to compile the Seed7 interpreter.
Afterwards Comanche can be started from the directory 'seed7/prg' with:
Comanche can be also compiled with:
This creates an executable which can be used without the 's7' interpreter.