如何configurationProFTPD为每个域提供不同的匿名FTP?

我正在尝试configurationProFTPD以匹配以下情况:

  1. 一个IP地址上有多个域。
  2. 每个域都应该有它自己的匿名FTP目录。
  3. 一切运行在Ubuntu 12.04LTS VPS服务器上。

例如,应该有一个ftp://example.com和ftp://otherdomain.com ,都有自己的目录,都只允许匿名下载。

我知道我需要创build一个IP别名(使用ifconfig eth0:0 192.168.1.100 (和192.168.1.101类似)),并在proftpd.conf或virtuals.conf中设置一个虚拟主机(同时尝试)。 这是我现在有

 <VirtualHost example.com> ServerName "Example.com download" DefaultRoot /var/www/example.com/ftp MaxClients 10 <Anonymous /var/www/example.com/ftp> User ftp Group ftp UserAlias anonymous ftp RequireValidShell no DisplayLogin welcome.msg DisplayChdir .message <Limit LOGIN> AllowAll </Limit> </Anonymous> </VirtualHost> 

每当我尝试使用此configuration访问服务器时,都会显示一个密码请求。 无论我尝试什么密码,我都无法进一步了解。

我看到消息来源声称,这是不可能与ProFTPD做,我已经看到了如何使它的工作(我一直无法运行)的指示来源。 许多networking主机在他们便宜的帐户上都有这种configuration,所以应该可能,尽pipe可能不适用于ProFTPd。

任何人都可以帮助configuration这种types的设置?

不知道你是否仍然有这个问题(9个月以上),但这个configuration对我来说是工作的:

 <VirtualHost example.edu> RequireValidShell off ServerName "Anonymous FTP Server" Port 4001 Umask 027 <Limit LOGIN> DenyAll </Limit> <Anonymous /home/ftp/> User ftp Group nogroup UserAlias anonymous ftp <Limit LOGIN> AllowAll </Limit> <Limit WRITE> DenyAll </Limit> <Directory incoming> <Limit WRITE> AllowAll </Limit> </Directory> </Anonymous> TransferLog /var/log/proftpd/xferlogs/anon.log # pre-def for firewall. PassivePorts 49152 50000 </VirtualHost>