自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Proftpd環(huán)境下設(shè)定虛擬主機

系統(tǒng) Linux
Proftpd全稱:Professional FTP daemon是針對Wu-FTP的弱項而開發(fā)的,除了改進的安全性,還具備許多Wu-FTP沒有的特點,能以Stand-alone、xinetd模式運行等。那Proftpd怎么設(shè)置虛擬主機!

ProFTPD設(shè)計目標(biāo)是實現(xiàn)一個安全且易于設(shè)定的FTP Server。本文介紹下虛擬主機如何在Proftpd環(huán)境下實現(xiàn)。

  可以通過指令:VirtualHost來實現(xiàn),一個最簡單的例子:

  ServerName "virtual FTP server"

  若你僅僅希望通過匿名訪問某個虛擬主機,則使用如下! 的指令:

  Serv erName "virtual FTP server"

  DenyAll

  User private

  Group private

  AllowAll

  這樣192.168.2.35的這臺主機則僅僅允許匿名登錄。

  筆者的proftpd.conf配置文件內(nèi)容為:

 

  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設(shè)置虛擬主機的過程!

【編輯推薦】

 

責(zé)任編輯:趙鵬 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2017-08-15 15:24:21

2011-03-09 16:17:21

CentOSLAMP

2010-07-01 13:35:51

vsftpd

2010-03-29 16:17:07

Nginx虛擬主機

2011-01-18 14:53:25

sendmail郵件

2011-03-04 11:13:11

2011-03-08 11:21:55

proftpdxinetd

2009-06-30 15:39:05

JSP虛擬主機

2011-03-08 11:28:15

proftpd

2017-04-05 14:43:20

虛擬主機故障

2016-08-10 08:14:13

虛擬主機海外主機

2009-04-03 16:02:55

2011-03-01 14:46:53

Debian Proftpd

2011-02-25 09:16:48

Proftpd

2009-07-21 15:34:32

ASP.NET 2.0

2011-08-16 15:16:26

UbuntuApache虛擬主機

2018-11-20 11:22:24

PHP虛擬主機

2009-06-10 14:00:31

Jboss虛擬主機安裝

2011-03-02 17:59:13

Proftpd.con設(shè)定

2011-03-08 10:38:13

proftpd.con
點贊
收藏

51CTO技術(shù)棧公眾號