久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Proftpd環境下如何設定虛擬主機

155次閱讀
沒有評論

共計 1827 個字符,預計需要花費 5 分鐘才能閱讀完成。

這篇文章給大家介紹 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 配置文件內容為:

# This is a basic ProFTPD configuration file (rename it to #  proftpd.conf  for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group #  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

# To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to ! nbsp;limit maximum number of processes per nb sp;service # (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 環境下如何設定虛擬主機就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-08-25發表,共計1827字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 鄂尔多斯市| 余庆县| 濮阳县| 淳化县| 嘉鱼县| 临清市| 宝坻区| 长治县| 许昌市| 平果县| 镇赉县| 西盟| 错那县| 彝良县| 高阳县| 新乡市| 三穗县| 治多县| 辉县市| 名山县| 图木舒克市| 尉犁县| 彰化市| 新兴县| 桐乡市| 华阴市| 赤水市| 禹州市| 西充县| 大兴区| 石家庄市| 阿鲁科尔沁旗| 平昌县| 长春市| 崇阳县| 九寨沟县| 黑山县| 高阳县| 开封县| 郧西县| 饶河县|