|
在我的服务器上,我架了一个FTP,因为我只有一个IP,所以我只有设基于port的Vhost,一个是21,一个是4000,还有一个是4001,我已经把相关的设置都放在了<global>里面,可是不知道为什么,只有21port可以FXP,其它两个port全都不可以FXP.
这个问题已经害我很久了,不知道有没有人能帮我?
下面的是我的proftpd.conf:
ServerName "Welcome to aa FTP Site"
ServerType standalone
DefaultServer on
UseReverseDNS off
ServerIdent on "Welcome to aa FTP Site"
SystemLog /var/log/proftpd.log
Port 21
<Global>
AllowStoreRestart on
AllowRetrieveRestart on
AllowForeignAddress on
AllowOverwrite on
RequireValidShell no
IdentLookups off
ListOptions "-la" "strict"
Umask 022
</Global>
<VirtualHost xx.xx.xx.xx>
ServerName "aa Ftp1"
Port 4000
MaxClientsPerHost 1
MaxClients 60
TransferRate RETR 50
DefaultRoot ~
<Limit Login>
AllowGroup normal
</Limit>
<Directory ~/>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
ServerName "xx for upload only"
Port 4001
MaxClientsPerHost 2
MaxClients 60
TransferRate RETR 50
DefaultRoot ~/incoming
<Limit Login>
AllowGroup normal
</Limit>
<Directory ~/>
<Limit RETR>
DenyAll
</Limit>
</Directory>
</VirtualHost> |
|