A SERVICE OF

logo

Chapter 3. Configuration 21
http://www.some.site.com/a.html => docroot/some.site/a.html
If the value is set to 2:
http://www.some.site.com/a.html => docroot/site/a.html
and so on...
3.9. TUX as an FTP Server
Starting with version 2.0.21 of TUX and version 2.4.2-U7 of the TUX patched kernel, TUX
can be configured to run as an anonymous FTP server.
To use TUX as an HTTP and FTP server at the same time, use the following commands:
echo "http://0.0.0.0:80" > /proc/net/tux/0/listen/0
echo "ftp://0.0.0.0:21" > /proc/net/tux/0/listen/1
By default, the document root for the FTP server is the document root for the HTTP server
set asDOCROOT in/etc/sysconfig/tuxor thevalue of/proc/sys/net/tux/documentroot.
To configure different document roots for the HTTP and FTP server, set the DOCROOT in
/etc/sysconfig/tux and execute the following commands:
Note
The http_subdocroot and ftp_subdocroot are relative to DOCROOT.
echo ’/www/’ > /proc/sys/net/tux/http_subdocroot
echo ’/ftproot/’ > /proc/sys/net/tux/ftp_subdocroot
Restart TUX to apply the changes:
service tux restart
After executing these commands, the TUX FTP server will be running on port 21.
To have it display directory listings, run the generatetuxlist script from the FTP docroot.
This script creates the files .TUX-LIST and .TUX-NLIST files that cache the directory list-
ing. Everytime the FTP docroot directory changes, the script must be re-run to generate an
updated directory listing.
Note
The TUX FTP server has been through numerous stresstests and FTP-client compatibility tests.
However, it is still early software. TUX/FTP has no known bugs or security holes at the moment. It
has not been tested with a wide number of FTP clients yet (only the most obvious ones).