Chapter 4. Parameters

This chapter describes how to configure TUX with the provided scripts.

Note

Most parameters can only be set when TUX is not active.

List of Parameters

The following parameters are settable through /proc/sys/net/http.

Table 4-1. TUX Configuration Parameters

NameDefaultDescription
serverport80The port listened to by the main web server
clientport8080The port listened to by the userspace http-daemon
threadsnumber of CPUsThe number of server-threads, set at most to 1 per CPU
documentroot/var/wwwThe directory where the web pages are stored
start0Set to 1 to start TUX (this also resets "stop" to 0)
stop0Set to 1 to stop TUX (this also resets "start" to 0)
unload0Set to 1 to prepare TUX for unloading of the module
mode_allowedS_IROTHRequired permissions for files TUX will process. See "man 2 stat" for all values.
mode_forbiddendir+sticky+executeFiles with this permission-mask are "forbidden" and will not be processed by TUX. See "man 2 stat" for all values.
sloppymime0If set to 1, unknown mime-types are set to text/html. If set to 0, files with unknown mime-types are handled by the user-space http daemon.
dynamiccgi-binStrings that indicate dynamic context if they are a substring of a URL. The path is considered relative to documentroot unless it begins with a /. If it begins with a /, it is considered an absolute path.
maxconnect1000Maximum number of concurrent connections
logging1If set to 1, logging is enabled. If set to 0, logging is disabled.
mode_redirect0Any object with this mode bit is redirected to the alternate web server or returns a 403 error is there is no alternate web server