Date: Fri, 26 May 1995 21:33:23 -0400 (EDT)
From: Brian Kramer <bjkramer@pluto.njcc.com>
To: wu-ftpd@wugate.wustl.edu
Subject: Virtual FTP Servers

[Modifications to provide for discrete xferlogs for each server provided by
Marc G. Fournier <scrappy@ki.net> -- sob.]
 
I'm attaching a patch for wu-ftpd 2.4 to allow virtual ftp servers to be 
setup.  Basically so a user ftping to ftp1.domain.com gets one ftp banner 
and one ftp directory and a user ftping to ftp2.domain.com gets another 
banner and directory even though they are on the same machine and port.


I was the person who originally asked how to do it, and got enough answers 
to write a patch that would allow it.  You have to be able to setup alias 
IP addresses in order for this to work.  I know linux and bsdi support this.  
I do not warrant this code at all.  Use it AT YOUR OWN RISK.  If it causes 
your computer to blow up, TOUGH! 

Please send me comments, I'm interested in improving it, and hearing
how it works for people.

Here's the steps.

Compile the software with -DVIRTUAL added to the CFLAGS in the Makefile

Add lines similar to the following for each virtual server to ftpaccess:

# Virtual Server at 10.10.10.10
virtual 10.10.10.10 root    /var/ftp/virtual/ftp-serv 
virtual 10.10.10.10 banner  /var/ftp/virtual/ftp-serv/banner.msg
virtual 10.10.10.10 logfile /var/log/ftp/virtual/ftp-serv/xferlog


The first arg is the ip address of the virtual server.
The second arg is either "root", "banner" or "logfile" (without the quotes)
for that virtual server.
The third arg is the file system location for the item specified in the 
second arg.

Note: all the other message files, etc, and permissions and other settings
in the ftpaccess file apply to all virtual servers.

$Id: VIRTUAL.FTP.SUPPORT,v 1.3 1997/12/21 23:01:03 sob beta16 sob $










