A simple way to implement FTP virtual host under Linux system

  
Under Linux, we can use FTP service programs such as wu-ftp, tftp-server, proftpd, gssftp, vsftp to build FTP server. Because wu-ftp (Washington University Ftp) is widely used in various Linux distributions and a variety of Unix (including IBM AIX, FreeBSD, HP-UX, various BSD, Solaris, etc.), and it is in the Internet. The possession exceeds 50%, and now the Linux distribution has 2.6 version of wu-ftp, so let's take it as an example to introduce how to implement FTP virtual host under Linux. Virtual Host Installation Requirements
wu-ftpd provides the functionality of a virtual host. It provides different FTP servers on the same host through an FTP software, and distinguishes different virtual hosts by host name or IP. Wu-ftp has two installation methods: rpm and tar. The rpm installation is relatively simple and can be installed directly via rpm ivh wu-ftp*.rpm. The following mainly introduces the tar installation method. For Linux without the RPM installer package, you can download a source tar code package from http://www.wu-ftpd.org, so that you can better customize the various functions that wu-ftp can support according to your needs. Contains some additional upload speed, virtual host and other functions. 1. Unzip the package tar -zxvf wu-ftpd-current.tar.gz:
#cd wu-ftp
2. Additional functions required for configuration:
#./configure --enable-virtual 
This enable-virtual parameter must be set, by setting this parameter, providing virtual host services, while increasing the throughput of the FTP server, so wu-ftp has the function of virtual host. 3. Compile and install
# make # make install
Through the above steps, the server has been successfully installed on the Linux system. The system should now contain the
/etc/ftpaccess /etc/ftpconversions /etc/ftpgroups /etc/ftphosts /etc/ftpusers
configuration file, as well as
/usr/bin/ftpcount /usr/bin/Executable programs such as ftpwho /usr/sbin/ftprestart /usr/sbin/ftpshut /usr/sbin/in.ftpd
, of course, also include some help, man documentation. As long as these files are included in the system, the FTP server has been successfully installed. Two of these files are about virtual host configuration, where the ftpservers file controls the server to use different configuration files for feature set when the client logs in to a different virtual host. For example, add the following two statements to ftpservers:
172.20.66.10 /etc/ftpaccess.1 172.20.66.20 /etc/ftpaccess.2
These two lines specify the server when the user accesses from 10 IP. The configuration file of ftpaccess.1 is specified, and when the user accesses from 20 IP, the server specifies the configuration file of ftpaccess.2. In the process of configuring a virtual host below, this file needs to be used together.

Copyright © Windows knowledge All Rights Reserved