WU-FTPD 2.6.1 Release Notes (5900-2465, September 2012)

Figure 1 Structure of an FTP Server Hosting Two Virtual Domains
ftp.domain.com
ftp.animals.com
(Virtual Domain 1)
ftp.flowers.com
(Virtual Domain 2)
(FTP Server)
In Figure 1, a user connected to the FTP server ftp.domain.com through the domain
ftp.animals.com receives a different banner and directory than a user who is connected to
the same server through the domain ftp.flowers.com.
Setting up Virtual FTP Support
The configuration file /etc/ftpd/ftpservers contains a set of virtual domain names that the
FTPD server can use for each virtual domain. Using the virtual domain name, you can define the
FTP configuration files ftpaccess, ftpusers, ftpgroups, ftphosts, and ftpconversion
files on a per-domain basis. If you want to place a copy of one or all the FTP configuration files in
the virtual host directory, create a directory in the /etc/ftpd directory with a name similar to
the virtual domain name, and copy the FTP configuration files to that directory. Otherwise, you
can use the master copy.
NOTE: A sample configuration file exists in the /usr/newconfig/etc/ftpd/examples
directory.
Example 1 The /etc/ftpd/ftpserver Configuration File Entry
The following example shows a possible entry in the /etc/ftpd/ftpservers configuration
file:
123.123.123.123 /etc/ftpd/somedomain
In this example, when an FTP client connects to the server using the IP address 123.123.123.123,
the FTPD server searches for the configuration files ftpaccess, ftphosts, ftpusers,
ftpgroups, and ftpconversions under the directory /etc/ftpd/somedomain. If a match
is not found or an invalid directory path is encountered, the default master configuration files in
the /etc/ftpd directory are used instead.
Support for virtual FTP
Virtual FTP is supported in the following ways:
Without the ftpservers(4) file - By using the master /etc/ftpd/ftpaccess configuration
file. For more information, see “Without ftpservers (4) File (page 16).
With the ftpservers(4) file - By using the virtual domain's ftpaccess configuration file. For
more information, see “With ftpservers(4) File (page 18).
Without ftpservers (4) File
WU-FTP 2.6.1 supports the following directives for Virtual FTP support in the master /etc/ftpd/
ftpaccess configuration file:
virtual address allow username [ username ... ]
virtual address deny username [ username ... ]
16 WU-FTPD 2.6.1 Release Notes