A Brief Introduction to thttpd

Client-Server Interfaces, Spring 2002


This page describes the thttpd web server you can use as part of the third project. Unless otherwise indicated, all files mentioned in this page can be found in

/export/home/class/cs-537/p3/thttpd-2.20c

This page will describe only enough to get you started with thttpd; see the man page thttpd.8 or the PostScript version thttpd.ps if you're interested in more information about thttpd.

You may run thttpd in any directory; the directory in which you run thttpd is known as the home directory. thttpd searches only the home directory for any files requested by clients.

thttpd accepts a number of options, but the three most important ones are -p, -D, and -c.

Any program you want to run as a cgi program must have other execute permissions set.

$ ls -l printenv
total 4
-r-x------   1 rclayton faculty       342 Feb 13  2000 printenv

$ chmod o+x printenv

$ ls -l printenv
total 4
-r-x-----x   1 rclayton faculty       342 Feb 13  2000 printenv

$


This page last modified on 9 April 2002.