A SERVICE OF

logo

Chapter 3. Configuration 17
Parameter Default Description
DOCROOT /var/www/html The document root, the directory where the web
pages are stored.
CGI_UID nobody UID (user) as which to run CGI programs.
CGI_GID nobody GID (group) as which to run CGI programs.
DAEMON_UID nobody UID (user) as which the daemon runs.
DAEMON_GID nobody GID (group) as which the daemon runs.
CGIROOT /var/www/html The directory where the CGI programs are stored.
CGI programs can be started in the chroot
environment by default. Set CGIROOT=/ if you
want CGI programs to have access to the whole
system.
MAX_KEEPALIVE_TIMEOUT30 Timeout value for each HTTP connection. Use this
to prevent connection hangs.
TUXMODULES demo.tux
demo2.tux
demo3.tux
demo4.tux
list of user-space loadable TUX modules, see man
2 tux for more information
MODULEPATH / Path to the user-space loadable TUX modules
3.3.3. /proc/net/tux Parameters
After starting TUX, the /proc/net/tux directory contains the file stat. This file contains
statistics on every allocated request structure. As this works evenif TUX_DEBUG is turned off,
this should help debugging things a bit more. It can also be used to calculate file download
status. For example, TUX/FTP - the 100*f_pos/filelen gives the current progress of down-
load.
It is possible to bind the logger thread to any particular CPU (or group of CPUs), so you can
localize IO, via /proc/net/tux/log_cpu_maskThe default is to run on any CPU.
3.3.4. Required Parameters
Before starting TUX, the following parameters must be set:
serverport
clientport
DOCROOT
The DOCROOTfor TUXmust be thesame document root directory as Apache orother user-space
daemon running as the assistant web server for TUX to properly redirect requests.