ftpserversSection: File Formats (5)
Return to Main Contents
Nameftpservers - ftpd virtual hosting configuration specification file
The ftpservers file is used to tell which set of virtual domain configuration files the ftpd(8) server should use. When compiled with VIRTUAL support, wu-ftpd has the ability to use separate configuration files for each virtual domain.
Currently, configuration files are placed into a separate virtual domain directory. The directory path and the IP address that is to use those configuration files is listed in the ftpservers file. The actual configuration files put into the virtual domain directory MUST be named:
You do not need to put every file in each of the virtual domain
directories. If you want a set of domains to use the master copy
of a file, for example, the ftpconversions file, then do not include
that file in those virtual domain directories. In that case the
default master copy will be used.
ftpservers file format
There are two fields to each entry.
When an ftp client connects to the server, ftpd tries to match the IP address the ftp client connected to with one found in the ftpservers file.
If a match is found the path to the specified directory containing the configuration files for that specific domain is returned. The ftpd server uses any configuration files in that directory.
If a match is not found, or an invalid directory path is encountered, default paths to the configuration files are used. The use of INTERNAL in the example above fails the check for a specific directory and the master configuration files will be used.
Either the actual IP address or a specific hostname can be used to specify the virtual domain. It is better to specify the actual IP of the virtual domain as it reduces the need for a domain lookup and eliminates DNS security related naming issues.
See Alsoftpd(8), ftpaccess(5) ftplog(5), ftpconversions(5), ftphosts(5)
This document was created by man2html, using the manual pages.
Time: 05:20:04 GMT, February 26, 2024