16 Chapter 3. Configuration
Name Default Description
virtual_server 0 (off) Turns on mass virtual hosting. Hosts
are headers from the browser that are
directly turned into
$DOCROOT/
Host ’virtual
docroots.’ This way any number of
hosts can be served by a single TUX
server without any performance
penalty at all. Refer to Section 3.8 for
details.
mass_hosting_hash 0 (off) If virtual_server is enabled, this
parameter modifies the hostname
mapping to be more effective for a large
number of hosts. Refer to Section 3.8 for
details.
strip_host_tail 0 (off) If virtual_server is enabled, this
parameter strips off hostname
components. Refer to Section 3.8 for
details.
zerocopy_parse 1 Use the input packet buffer as a
temporary buffer and avoids copying
input data.
defer_accept 0 (disabled if
keepalive_timeout or
max_keepalives is set)
If set to 1, then TUX processes will not
be woken up on the initial SYN-ACK
event of a new TCP connection, but
only after the first real data packet has
arrived. If set to 0, this feature is
disabled.
http_dir_indexing 0 (disabled) If set to 1, TUX will list files in readable
directories if an index file does not
exist.
3.3.2. Init Script Parameters
If theTUX init script /etc/rc.d/init.d/tuxis used, thefollowing parameters can beset in
the file /etc/sysconfig/tux (see Table 3-2). They should not be set in /etc/sysctl.conf
because the init script will override parameters set in /etc/sysctl.conf. Using the init
script is the preferred method for starting TUX.
Table 3-2. /etc/sysconfig/tux parameters
Parameter Default Description
TUXTHREADS The number of
server-threads,
set at most to 1
per CPU
The number of kernel threads (and associated
daemon threads) to be used, cannot be greater
than the number of CPUs on the system