Proftpd环境下设定虚拟主机

系统 Linux
Proftpd全称:Professional FTP daemon是针对Wu-FTP的弱项而开发的,除了改进的安全性,还具备许多Wu-FTP没有的特点,能以Stand-alone、xinetd模式运行等。那Proftpd怎么设置虚拟主机!

ProFTPD设计目标是实现一个安全且易于设定的FTP Server。本文介绍下虚拟主机如何在Proftpd环境下实现。

  可以通过指令:VirtualHost来实现,一个最简单的例子:

  ServerName "virtual FTP server"

  若你仅仅希望通过匿名访问某个虚拟主机,则使用如下! 的指令:

  Serv erName "virtual FTP server"

  DenyAll

  User private

  Group private

  AllowAll

  这样192.168.2.35的这台主机则仅仅允许匿名登录。

  笔者的proftpd.conf配置文件内容为:

 

  1.   # This is a basic ProFTPD configuration file (rename it to  
  2.  
  3.   # 'proftpd.conf' for actual use. It establishes a single server  
  4.  
  5.   # and a single anonymous login. It assumes that you have a user/group  
  6.  
  7.   # "nobody" and "ftp" for normal operation and anon.  

 

  ServerName &! quot;test.com.cn FTP Server"

  ServerType standalone

  DefaultServer on

  # Port 21 is the standard FTP port.

  Port 21

  # Umask 022 is a good standard umask to prevent new dirs and files

  # from being group and world writable.

  Umask 022

 

  1.   # To prevent DoS attacks, set the maximum number of child processes  
  2.  
  3.   # to 30. If you need to allow more than 30 concurrent connections  
  4.  
  5.   # at once, simply increase this value. Note that this ONLY works  
  6.  
  7.   # in standalone mode, in inetd mode you should use an inetd server  
  8.  
  9.   # that allows you to&! nbsp;limit maximum number of processes per&nb sp;service  
  10.  
  11.   # (such as xinetd)  

 

  MaxInstances 30

  RequireValidShell off

  ServerIdent off

  # Set the user and group that the server normally runs at.

  User nobody

  Group nobody

  # Normally, we want files to be overwriteable.

  AllowOverwrite on

  # A basic anonymous configuration, no upload directories.

  User ftp

  Group ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"

  UserAlias anonymous ftp

  # Limit the maximum number of anonymous logins

  MaxClients 10

  # We ! ;want 'welcome.msg' displayed at login, and '.message' displayed

  # in each newly chdired directory.

  DisplayLogin welcome.msg

  DisplayFirstChdir .message

  # Limit WRITE everywhere in the anonymous chroot

  DenyAll

  DefaultRoot ~ ftpusers

  ServerName "virtual FTP server"

  DenyAll

  User private

  Group private

  AllowAll

通过本文的描述,希望你们能懂得Proftpd设置虚拟主机的过程!

【编辑推荐】

 

责任编辑:赵鹏 来源: 网络转载
相关推荐

2017-08-15 15:24:21

2011-03-09 16:17:21

CentOSLAMP

2010-07-01 13:35:51

vsftpd

2011-03-08 11:28:15

proftpd

2011-03-08 11:21:55

proftpdxinetd

2011-03-04 11:13:11

2011-01-18 14:53:25

sendmail邮件

2010-03-29 16:17:07

Nginx虚拟主机

2009-06-30 15:39:05

JSP虚拟主机

2016-08-10 08:14:13

虚拟主机海外主机

2017-04-05 14:43:20

虚拟主机故障

2009-04-03 16:02:55

2011-03-02 17:59:13

Proftpd.con设定

2011-03-02 17:49:20

Proftpd安装

2011-03-08 10:38:13

proftpd.con

2011-02-25 09:16:48

Proftpd

2011-03-01 14:46:53

Debian Proftpd

2011-08-16 15:16:26

UbuntuApache虚拟主机

2009-07-21 15:34:32

ASP.NET 2.0

2009-06-10 14:00:31

Jboss虚拟主机安装
点赞
收藏

51CTO技术栈公众号