This chapter describes how to configure TUX with the provided scripts.
![]() | Most parameters can only be set when TUX is not active. |
The following parameters are settable through /proc/sys/net/http.
Table 4-1. TUX Configuration Parameters
Name | Default | Description |
---|---|---|
serverport | 80 | The port listened to by the main web server |
clientport | 8080 | The port listened to by the userspace http-daemon |
threads | number of CPUs | The number of server-threads, set at most to 1 per CPU |
documentroot | /var/www | The directory where the web pages are stored |
start | 0 | Set to 1 to start TUX (this also resets "stop" to 0) |
stop | 0 | Set to 1 to stop TUX (this also resets "start" to 0) |
unload | 0 | Set to 1 to prepare TUX for unloading of the module |
mode_allowed | S_IROTH | Required permissions for files TUX will process. See "man 2 stat" for all values. |
mode_forbidden | dir+sticky+execute | Files with this permission-mask are "forbidden" and will not be processed by TUX. See "man 2 stat" for all values. |
sloppymime | 0 | If 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. |
dynamic | cgi-bin | Strings 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. |
maxconnect | 1000 | Maximum number of concurrent connections |
logging | 1 | If set to 1, logging is enabled. If set to 0, logging is disabled. |
mode_redirect | 0 | Any object with this mode bit is redirected to the alternate web server or returns a 403 error is there is no alternate web server |