偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

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

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

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

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

  ServerName "virtual FTP server"

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

  Serv erName "virtual FTP server"

  DenyAll

  User private

  Group private

  AllowAll

  這樣192.168.2.35的這臺(tái)主機(jī)則僅僅允許匿名登錄。

  筆者的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è)置虛擬主機(jī)的過程!

【編輯推薦】

 

責(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

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虛擬主機(jī)

2011-03-02 17:59:13

Proftpd.con設(shè)定

2011-03-08 10:38:13

proftpd.con

2011-03-02 17:49:20

Proftpd安裝

2011-02-25 09:16:48

Proftpd

2011-03-01 14:46:53

Debian Proftpd

2017-04-05 14:43:20

虛擬主機(jī)故障

2016-08-10 08:14:13

虛擬主機(jī)海外主機(jī)

2009-06-30 15:39:05

JSP虛擬主機(jī)

2009-04-03 16:02:55

2011-03-01 15:11:26

DebianProFTPD

2011-08-16 15:16:26

UbuntuApache虛擬主機(jī)

2009-07-21 15:34:32

ASP.NET 2.0
點(diǎn)贊
收藏

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