[::learn::header "Lesson 1: Server Setup"] [Doc_Dynamic]
tclsh$tcl_version bin/httpd.tcl -debug 1This runs the server using a standard selection of features and displaying the documents stored under htdocs in the distribution. If you want an alternate document root, use the -docRoot directory command line option.
tclsh$tcl_version bin/httpd.tcl -docRoot directory
When you specify the -debug flag, you get additional information printed as different modules are loaded. You also get a Tcl command prompt that lets you poke around in the main Tcl interpreter used by TclHttpd.
Here are the command line options understood by this server:
| option | default | description |
|---|---|---|
| -$arg | $default | $comment |
The sampleapp directory of the distribution contains several examples contributed by TclHttpd users. [mypage::footer]