A SERVICE OF

logo

Chapter 3. Configuration
This chapter describes how to configure the TUX Web Server.
3.1. Modes of Operation
The recommended mode of operation is to have TUX running as the main web server and
Apache run as the assistant.
Client Port: 8080 (or other)
Web Server Port: 80
For the recommend mode where TUX is the mainweb server, the configuration for the user-
space daemon must be changed to use port 8080. For Apache configuration, the changes are
made in the configuration file /etc/httpd/conf/httpd.conf by changing the line
Port 80
to
Port 8080
For security reasons, the line
BindAddress *
should be changed to
BindAddress 127.0.0.1
This will prevent outside users from accessing Apache directly. You must restart Apache for
the changes to take effect with the command /etc/rc.d/init.d/httpd restart.
The alternate mode of operation is to have the user-space daemon such as Apache as the
main web server and TUX as the assistant.
Client Port: 80
Web Server Port: 8080 (or other)
3.2. Compressed Gzip Data Stream
TUX is now able to send compressed (gzip) data. This has the potential to decrease the
amount of data the Web server sends to the client browser and decrease the browser’s load
time.
By default, this data compression is disabled. To enable it, add the following line to
/etc/sysctl.conf:
net.tux.compression=1
The Gzip file with the extension .gz must be in the same directory as the uncompressed
versions of the pages you wish to serve. All of the following conditions must be true for
TUX to send the .gz file. Otherwise, the original file(s) are sent.
11