| United States-English |
|
|
|
![]() |
HP-UX Remote Access Services Administrator's Guide: HP-UX 11i v2, HP-UX 11i v3 > Chapter 2 Configuring FTPVirtual FTP Support |
|
Virtual FTP support allows you to manage an FTP server for multiple domains on the same machine. Virtual FTP allows an administrator to configure a system to display a different banner, log file, and directory to a user when the user is connected to different domains on the same system. The advantage of virtual FTP support is that the identity of the machine is hidden. Also, this feature allows a single machine to act as multiple FTP servers for multiple domains. Figure 2-2 shows a graphical representation of an FTP server, ftp.domain.com, hosting two virtual domains, ftp.animals.com and ftp.flowers.com. In Figure 2-2, 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. 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. 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. If you do not want to place a copy of one or all the FTP configuration files in the virtual host directory for any host, you can use the master copy.
Example 2-15 /etc/ftpd/ftpserver Configuration File Entry The following example shows a possible entry in the /etc/ftpd/ftpservers configuration file:
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 directory /etc/ftpd are used instead. Virtual FTP can be supported in two ways:
WU-FTP 2.6.1 supports the following directives for Virtual FTP support in the master /etc/ftpd/ftpaccess configuration file:
This section describes the functionality of the various directives. These directives are is used to allow or deny real and guest users. They can be used in the /etc/ftpd/ftpaccess file as well as the virtual domain specific ftpaccess file.
This directive is used to deny anonymous FTP login. By default, anonymous users are allowed to log in a virtual FTP setup.
These directives are used to display the banner message and are used in the /etc/ftpd/ftpacess file.
The virtual address root path directive can also be used in conjunction with the virtual address email string directive. For more information, see “The “virtual address root path” and “virtual address email string” directives.” This directive is used to change the file where all the logging information of ftpd( 1M) must be written. This directive is used in the /etc/ftpd/ftpaccess file.
This directive is used to change the default hostname of the FTP server. This directive is used in the /etc/ftpd/ftpaccess file.
These directives are used to change the email address of the FTP archive maintainer. These directives are used in the /etc/ftpd/ftpaccess file.
This directive is used to change the email address for anonymous upload notifications. This directive is used in the /etc/ftpd/ftpaccess file.
This directive is used to change the sender's email address for anonymous upload notifications. This directive is used in the /etc/ftpd/ftpaccess file.
Use the following directives to achieve the configurations described in “Without ftpservers (4) File”:
This section describes the functionality of the various directives. These directives are used to allow or deny real and guest users to log in a virtual FTP setup. These directives can also be used in the master /etc/ftpd/ftpaccess file. This directive is used to deny anonymous access to virtual FTP setup. This directive can also be used in the master /etc/ftpd/ftpaccess file. This directive is used to allow anonymous FTP access in a virtual FTP setup. This directive is used to display the banner message. This directive is used in the /etc/ftpd/ftpacess file.
This directive is used to change the path of the xferlog( 4) file. This directive is used in the /etc/ftpd/ftpaccess file.
This directive is used to change the hostname string. This directive is used in the /etc/ftpd/ftpaccess file.
This directive is used to change the email address of the FTP archive maintainer. This directive is used in the /etc/ftpd/ftpaccess file.
This directive is used to change the email address for anonymous upload notifications. This directive is used in the /etc/ftpd/ftpaccess file.
This directive is used to change the sender's email address for anonymous upload notifications. This directive is used in the /etc/ftpd/ftpaccess file.
The steps to set up a virtual FTP server are as follows:
The root directory of the anonymous user is changed to the directory as specified in the virtual IP address root entry in the /etc/ftpd/ftpaccess file. For example:
In this example, the root directory of the anonymous user is changed to the /virtual directory. You must ensure that the files referenced after changing the root directory exist in the virtual server (similar to the scenario for setting up an anonymous account). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||