ProFTPD name-based vhosts: how?

Steve McGrane yellowdog-general@lists.terrasoftsolutions.com
Sun Aug 11 13:18:01 2002


The FTP protocol doesn't support "name based" shared FTP hosting as the host
name in question isn't passed to the ftp server.  On a Linux box this is
easy to get around, esp. with ProFTPd.

You'll need to have at least one user per domain, and make sure that each
domain is in its own directory tree (eg /home/domain/*)

Make the user of this domains home directory default to that domains
directory tree in /etc/passwd.

Edit the ProFTPd server's config file by modifying/adding the following
lines:


#ServerName shown in the FTP login banner:

ServerName     "Something Generic"

# First Param is the directory to "jail" users into,
# this appears as "/" in there FTP client, and they cannot
# CD higher than this.
# Second Param is the group name/username of users that
# this rule applies to.  Prepend a "!" to all users/groups
# full access

DefaultRoot    ~ users, !wheel, !steve

- Steve
MAC Friendly Hosting
http://www.globaltap.com

-----Original Message-----
From: yellowdog-general-admin@lists.terrasoftsolutions.com
[mailto:yellowdog-general-admin@lists.terrasoftsolutions.com]On Behalf
Of Shawn Coomey
Sent: Saturday, August 10, 2002 3:16 PM
To: yellowdog-general@lists.terrasoftsolutions.com
Subject: ProFTPD name-based vhosts: how?


Hi folks!

I have a few domains that point to my YDL 2.2 box. I'd like to be able
to run a virtual ftp server for each (i.e. ftp.domainname1.com,
ftp.domainname2.com, etc). It would have to be name-based as I have 1 IP
address.

Is this possible? I know there are limitations to the FTP protocol when
it comes to this stuff.

Any help is greatly appreciated.

Shawn

_______________________________________________
yellowdog-general mailing list
yellowdog-general@lists.terrasoftsolutions.com
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general