热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ProFTPd.conf配置文件详细说明

--------------------------------------------------------------------AccessDenyMsg--访问拒绝的信息提示(530)。语法:AccessDenyMsg[messge]语境:serverconfig,VirtualHost,Anonymous,

--------------------------------------------------------------------

AccessDenyMsg -- 访问拒绝的信息提示(530)。

语法:AccessDenyMsg ["messge"]

语境:server config, , ,

模块:mod_auth

范例:AccessDenyMsg "用户%u访问被拒绝!"

--------------------------------------------------------------------

AccessGrantMsg -- 访问拒绝的信息提示(230)。

语法:AccessGrantMsg ["messge"]

语境:server config, , ,

模块:mod_auth

范例:AccessGrantMsg "用户%u成功登陆!"

--------------------------------------------------------------------

Allow -- 使用网络号、主机、域名控制允许访问

语法:Allow [ ["from"] "all"|"none"|host|network[,host|network[,...]]]

默认:Allow from all

语境:

范例:

  Order allow,deny

  Allow from 128.44.26.,myhost.mydomain.edu,.trusted-domain.org

  Deny from all

--------------------------------------------------------------------

AllowAll -- 所有客户端允许访问

语法:AllowAll

语境:, , , .ftpaccess

模块:mod_auth

范例:

  AllowAll

--------------------------------------------------------------------

AllowClass -- 使用类控制允许访问

语法:AllowClass [["AND"|"OR"|"regex"] class-expression]

语境:

范例:

  From 192.168.0.0/24

  AllowClass internal

--------------------------------------------------------------------

AllowFilter -- 以正则表达式匹配所有发送到proftpd的命令,匹配失败则会禁止此命令。

语法:AllowFilter [regular-expression]

语境:server config, , , , , .ftpaccess

范例:AllowFilter "^[a-zA-Z0-9 ,]*$"

--------------------------------------------------------------------

AllowForeignAddress -- 控制客户端使用 PORT 模式(主动)

语法:AllowForeignAddress [on|off]

默认:AllowForeignAddress off

语境:server config, , ,

--------------------------------------------------------------------

AllowGroup -- 使用用户组控制允许访问

语法:AllowGroup [["AND"|"OR"|"regex"] group-expression]

语境:

范例:AllowGroup OR www,doc

--------------------------------------------------------------------

AllowLogSymlinks -- 允许符号链接

语法:AllowLogSymlinks ["on"|"off"]

默认:AllowLogSymlinks off

语境:server config, ,

--------------------------------------------------------------------

AllowOverride -- 控制那些.ftpaccess文件将解析

语法:AllowOverride [on|off ["user"|"group"|"class" expression]]

默认:AllowOverride on

语境:server config, , ,

--------------------------------------------------------------------

AllowOverwrite -- 控制能否覆盖现有的文件

语法:AllowOverwrite [on|off]

默认:AllowOverwrite off

语境:server config, , , , , .ftpaccess

模块:mod_xfer

范例:AllowOverwrite on

--------------------------------------------------------------------

AllowRetrieveRestart -- 允许客户机恢复下载

语法:AllowRetrieveRestart [on|off]

默认:AllowRetrieveRestart on

语境:server config, , , , , .ftpaccess

--------------------------------------------------------------------

AllowStoreRestart -- 允许客户机恢复上传(续传)

语法:AllowStoreRestart [on|off]

默认:AllowStoreRestart off

语境:server config, , , , , .ftpaccess

--------------------------------------------------------------------

AllowUser -- 使用用户控制允许访问

语法:AllowUser [["AND"|"OR"|"regex"] user-expression]

语境:

范例:AllowUser regex ^ftp

--------------------------------------------------------------------

AnonRatio -- 使用匿名用户的密码匹配设置上传下载比(通常密码是邮箱)

语法:AnonRatio [AnonPWD fileratio filequota byteratio bytequota]

      AnonPWD:就是登入 proftpd 的匿名用户的密码

      fileratio :这个是以档案为基准的『比例』,通常不限制,故为 0

      filequota :预设能够下载多少档案,不限制时为 0

      byteratio :就是上传/下载的比例,这个数字代表『1:下载』之意!

      bytequota :预设能够下载多少 KBytes 的档案!注意单位喔!

语境:, , ,.ftpaccess

模块:mod_ratio

范例:AnonRatio guest@itwhy.org 0 0 -2 0

--------------------------------------------------------------------

AnonRejectPasswords -- 屏蔽某些匿名用户的密码

语法:AnonRejectePasswords [regex]

语境:

模块:mod_auth

范例:AnonRejectPasswords @evil\.org$

--------------------------------------------------------------------

AnonRequirePassword -- 使匿名用户提供一个有效的密码

语法:AnonRequirePassword [ on|off]

默认:AnonRequirePassword off

语境:

模块:mod_auth

--------------------------------------------------------------------

Anonymous -- 定义一个匿名服务

语法:Anonymous [root-directory]

语境:server config,,

范例:

 

   

    DenyALL

   

 

--------------------------------------------------------------------

AnonymousGroup -- 使组成员都成为匿名用户

语法:AnonymousGroup [group]

语境:server config, ,

范例:AnonymousGroup www

--------------------------------------------------------------------

AuthAliasOnly -- 只允许别名登陆,不允许真实用户登陆

语法:AuthAliasOnly [on|off]

默认:server config, , ,

语境:mod_auth

--------------------------------------------------------------------

AuthGroupFile -- 使用用户组数据文件替代系统组

语法:AuthGroupFile [path]

语境:server config, ,

模块:mod_auth_file

范例:AuthGroupFile /usr/local/proftpd/etc/itwhy.ftpd.group

--------------------------------------------------------------------

AuthOrder -- 配置模块检查顺序

语法:AuthOrder [module-name...]

语境:server config, ,

范例:AuthOrder mod_sql.c mod_ldap.c

--------------------------------------------------------------------

AuthPAM -- 启用/禁用 PAM 认证

语法:AuthPAM [on|off]

默认:AuthPAM on

语境:server config,,

模块:mod_auth_pam

--------------------------------------------------------------------

AuthPAMConfig -- PAM 服务名称

语法:AuthPAMConfig [service]

默认:AuthPAMConfig ftp

语境:server config,,

模块:mod_auth_pam

范例:AuthPAMConfig itwhy_ftp

--------------------------------------------------------------------

AuthUserFile -- 使用用户数据文件替代系统用户

语法:AuthUserFile [path]

语境:server config,,

模块:mod_auth_file

范例:AuthGroupFile /usr/local/proftpd/etc/itwhy.ftpd.user

--------------------------------------------------------------------

AuthUsingAlias -- 通过别名认证代替映射的用户名

语法:AuthUsingAlias [on|off]

默认:AuthUsingAlias off

语境:

模块:mod_auth

--------------------------------------------------------------------

Bind -- <已废弃>

--------------------------------------------------------------------

ByteRatioErrMsg -- ByteRatio限制超过提示信息。

语法:ByteRatioErrMsg ["messge"]

语境:, , ,.ftpaccess

模块:mod_ratio

范例:ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."

--------------------------------------------------------------------

CapabilitiesEngine -- 启用/禁用mod_cap模块

语法:CapabilitiesEngine [on/off]

语境:server config, ,

模块:mod_cap

--------------------------------------------------------------------

CapabilitiesSet -- mod_cap的能力操纵

语法:CapabilitiesSet [[+/-]capability...]

语境:server config, ,

模块:mod_cap

范例:

  CapabilitiesEngine on

  CapabilitiesSet -CAP_CHOWN +CAP_DAC_READ_SEARCH +CAP_FOWNER

--------------------------------------------------------------------

CDPath -- 定义使用 cd 命令改变目录时使用的搜索路径

语法:CDPath [directory]

语境:server config, , ,

范例:CDPath /home/public

      CDPath /var/devel

      用户使用cd命令改变目录时,会依次搜寻/home/public和/var/devel,只要有相应的权限。

--------------------------------------------------------------------

Class -- 定义一个客户端连接类

语法:VirtualHost []

语境:server config

范例:见AllowClass指令

--------------------------------------------------------------------

CommandBufferSize -- 限制最大的命令的长度

语法:CommandBufferSize [size]

默认:CommandBufferSize 512

语境:server config, ,

--------------------------------------------------------------------

CreateHome -- 如果主目录不存在,则创建它

语法:CreateHome [off|on [] [skel ] [dirmode ]]

语境:server config, ,

模块:mod_auth

范例:CreateHome on skel /etc/ftpd/skel dirmode 700

--------------------------------------------------------------------

CwdRatioMsg -- Ratio模块的指令

语法:CwdRatioMsg ["messge"]

语境:, , ,.ftpaccess

模块:mod_ratio

范例:CwdRatioMsg "Please upload first!"

--------------------------------------------------------------------

DebugLevel -- 设置调试级别

语法:DebugLevel [0-9]

默认:DebugLevel 0

语境:server config, ,

--------------------------------------------------------------------

DefaultAddress -- 设置服务器默认监听IP址

语法:DefaultAddress [dns-names|ip-addresses seperated with spaces]

语境:server config

范例:DefaultAddress 192.168.10.30 my.domain.tld

--------------------------------------------------------------------

DefaultChdir -- 设置会话开始目录

语法:DefaultChdir [directory [group-expression]]

默认:DefaultChdir ~

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

DefaultRoot -- 改变用户根目录,使用户监禁在此目录中

语法:DefaultRoot [directory [group-expression]]

默认:DefaultRoot /

语境:server config, ,

模块:mod_auth

范例:DefaultRoot ~ users,!admin

--------------------------------------------------------------------

DefaultServer -- 设置默认的服务

语法:DefaultServer [on|off]

语境:server config,

--------------------------------------------------------------------

DefaultTransferMode -- 设置默认的数据传输方式

语法:DefaultTransferMode [ascii|binary]

默认:DefaultTransferMode ascii

语境:server config, ,

--------------------------------------------------------------------

DeferWelcome -- 不显示欢迎信息,直到用户验证

语法:DeferWelcome [on|off]

默认:DeferWelcome off

语境:server config, ,

--------------------------------------------------------------------

Define -- Initialises定义为IfDefine

语法:Define [parameter-name]

语境:any context

范例:IfDefine LoadLimiting

--------------------------------------------------------------------

DelayEngine -- 使用mod_delay模块

语法:DelayEngine [on|off]

默认:DelayEngine on

语境:server config

模块:mod_delay

范例:

  DelayEngine off

--------------------------------------------------------------------

DelayTable -- 指令存储时间数据文件

语法:DelayTable [path]

默认:DelayTable var/proftpd/proftpd.delay

语境:server config

模块:mod_delay

--------------------------------------------------------------------

DeleteAbortedStores -- 删除除未完全上传的文件

语法:DeleteAbortedStores [on|off]

默认:DeleteAbortedStores off

语境:server, , , , , .ftpaccess

模块:mod_xfer

--------------------------------------------------------------------

Deny -- 与 Allow 指令相反

--------------------------------------------------------------------

DenyAll -- 与 AllowAll 指令相反

--------------------------------------------------------------------

DenyClass -- 与 AllowClass 指令相反

--------------------------------------------------------------------

DenyFilter -- 与 AllowFilter 指令相反

--------------------------------------------------------------------

DenyGroup -- 与 AllowGroup 指令相反

--------------------------------------------------------------------

DenyUser -- 与 AllowUser 指令相反

--------------------------------------------------------------------

Directory -- 目录限制配置指令

语法:[]

语境:server config, , ,

范例:

 

  DenyAll

 

--------------------------------------------------------------------

DirFakeGroup -- 掩饰真正的文件所属组

语法:DirFakeGroup [On|Off [groupname]]

默认:DirFakeGroup Off

语境:server config, , , , , .ftpaccess

模块:mod_ls

范例:DirFakeGroup On ftp

--------------------------------------------------------------------

DirFakeMode -- 掩饰真实文件的权限

语法:DirFakeMode [octal-mode]

语境:server config, , , ,

模块:mod_ls

范例:DirFakeMode 0640

--------------------------------------------------------------------

DirFakeUser -- 掩饰真正的文件所属用户

语法:DirFakeUser [On|Off [username]]

默认:DirFakeUser Off

语境:server config, , , , , .ftpaccess

模块:mod_ls

--------------------------------------------------------------------

DisplayChdir -- 设置改变目录时显示的文件

语法:DisplayChdir [filename [true]]

语境:server config, , , ,

范例:DisplayChdir /home/ftp/.DisplayChdir true

--------------------------------------------------------------------

DisplayConnect -- 设置用户连接时显示的文件

语法:DisplayConnect [filename]

语境:server config, ,

--------------------------------------------------------------------

DisplayFileTransfer -- 设置文件转移时显示的文件(上传或下载)

语法:DisplayFileTransfer ["name" limit|regex|ip value]

语境:server config, , , , , .ftpaccess

模块:mod_xfer

--------------------------------------------------------------------

DisplayFirstChdir -- 设置当第一次进入一个目录时显示的文件<已废弃>

--------------------------------------------------------------------

DisplayGoAway -- 设置最大连接数达到上限被拒绝时显示的文件

语法:DisplayGoAway [filename]

语境:server config, , ,

--------------------------------------------------------------------

DisplayLogin -- 设置用户成功登陆时显示的文件

语法:DisplayLogin [filename]

语境:server config, , ,

--------------------------------------------------------------------

DisplayQuit -- 设置用户退出时显示的文件

语法:DisplayQuit [filename]

语境:server config, , ,

--------------------------------------------------------------------

DisplayReadme -- 显示指令文件的修改时间

语法:DisplayReadme [filename or pattern]

语境:server config, , ,

模块:mod_readme

范例:DisplayReadme README*

--------------------------------------------------------------------

ExtendedLog -- 定制log文件

语法:ExtendedLog [filename [[command-classes] format-nickname]]

语境:server config, ,

模块:mod_log

范例:ExtendedLog /var/log/ftp.log read,write

--------------------------------------------------------------------

FileRatioErrMsg -- 文件超过限制显示的信息

语法:FileRatioErrMsg ["messge"]

语境:, , ,.ftpaccess

模块:mod_ratio

范例:FileRatioErrMsg "FileRatio limit exceeded, upload something first..."

--------------------------------------------------------------------

Global -- 全局设置指令

语法:

语境:server config,

--------------------------------------------------------------------

Group -- 设置proftpd进程所属组

语法:Group [Group groupid]

语境:server config, , ,

范例:Group:nogroup

--------------------------------------------------------------------

GroupOwner -- 设置新文件的缺省组

语法:GroupOwner [GroupOwner groupname]

语境:, , .ftpaccess

范例:GroupOwner nogroup

--------------------------------------------------------------------

GroupPassword -- 设置群组密码,允许组成员使用单一的密码

语法:GroupPassword [GroupPassword groupid hashed-password]

语境:server config, , ,

模块:mod_auth

范例:GroupPassword www.itwhy.org 500

--------------------------------------------------------------------

GroupRatio -- 使用用户组匹配设置上传下载比

语法:GroupRatio [group fileratio filequota byteratio bytequota]

语境:, , ,.ftpaccess

模块:mod_ratio

范例:GroupRatio www 0 0 2 0

--------------------------------------------------------------------

HiddenStor -- 开启安全上传<已废弃>

--------------------------------------------------------------------

HiddenStores -- 开启安全上传(HiddenStor的延续)

语法:HiddenStor [on|off]

默认:HiddenStor off

语境:, , ,

模块:mod_xfer

范例:<这个指令不能和AllowStoreRestart指令同时开启>

--------------------------------------------------------------------

HideFiles -- 隐藏指令的文件

语法:HideFiles [[!]regexp|"none" ["user"|"group"|"class" expression]]

语境:, .ftpaccess

范例:HideFiles !(\.htm|\.html)$ group webmaster

--------------------------------------------------------------------

HideGroup -- 针对用户组隐藏文件

语法:HideGroup [groupid]

语境:,

范例:HideGroup 500

--------------------------------------------------------------------

HideNoAccess -- 针对户没有此目录权限

语法:HideNoAccess [on|off]

语境:,

--------------------------------------------------------------------

HideUser -- 使用用户隐藏文件

语法:HideUser [userid]

语境:,

--------------------------------------------------------------------

HostRatio -- 使用主机匹配设置上传下载比

语法:GroupRatio [host fileratio filequota byteratio bytequota]

语境:, , ,.ftpaccess

模块:mod_ratio

--------------------------------------------------------------------

IdentLookups -- 通过RFC1413调用捕获客户机用户的UID

语法:IdentLookups [on|off]

默认:IdentLookups on

语境:server config, ,

--------------------------------------------------------------------

IfDefine -有条件地跳过或处理文件中部分命令

语法:IfDefine [[!]define-label]

语境:any

范例:

  LoadModule mod_sql.c

  LoadModule mod_sql_mysql.c

--------------------------------------------------------------------

IfModule -- 解析一段基于模块的指定

语法:IfModule [[!]module-name]

语境:any

范例:

Ratios on

--------------------------------------------------------------------

IgnoreHidden -- 隐藏没有任何权限的文件

语法:IgnoreHidden [on|off]

默认:IgnoreHidden off

语境:

--------------------------------------------------------------------

Include -- 包含另一个配置文件在你当前的配置文件

语法:Include [Include file]

语境:server config, , , ,

范例:Include itwhy_ftp.conf

--------------------------------------------------------------------

LDAPAliasDereference -- LDAP别名规定如何操作

语法:LDAPAliasDereference [never find search always]

默认:LDAPAliasDereference never

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPAttr -- 自定义一些LDAP属性

语法:LDAPAttr [uid gid homeDir userPass Shell cn memberUid Quota] ["NewAttribute"]

语境:server config, ,

模块:mod_ldap

范例:<这个指定必需放在任何LDAP指令前面>

--------------------------------------------------------------------

LDAPAuthBinds -- 使用用户提供的口令和搜索到的用户 DN 绑定 LDAP 服务器,来验证口令

语法:LDAPAuthBinds [on off]

默认:LDAPAuthBinds off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPDefaultAuthScheme -- 设置使用 hash 认证

语法:LDAPDefaultAuthScheme [crypt clear]

默认:LDAPDefaultAuthScheme "crypt"

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPDefaultGID -- 设置默认的GID,当GID属性没有找到时

语法:LDAPDefaultGID [default-gid]

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPDefaultUID -- 设置默认的UID,当UID属性没有找到时

语法:LDAPDefaultUID [default-uid]

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPDNInfo  -- 设置 LDAP 默认绑定

语法:LDAPDNInfo [LDAPDNInfo "ldap-dn" "dn-password"]

默认:LDAPDNInfo "" ""

语境:server config, ,

模块:mod_ldap

范例:<如果 LDAP 支持匿名绑定,只需要把用户DN和口令设置为空>

--------------------------------------------------------------------

LDAPDoAuth -- 设置BaseDN 以及 LDAP 查询的 filter 通过语句

语法:LDAPDoAuth [on off] ["auth-base-dn"] ["search-filter-template"]

默认:LDAPDoAuth off

语境:server config, ,

模块:mod_ldap

范例:LDAPDoAuth on "dc=itwhy,dc=org" "(&(uid=%u)(authorizedService=ftp)(ossxpCOnfirmed=TRUE))"

--------------------------------------------------------------------

LDAPDoGIDLookups --

语法:LDAPDoGIDLookups [on off] ["gid-base-dn"] ["cn-filter-template"]

                       ["gid-number-filter-template"] ["member-uid-filter-template"]

默认:LDAPDoGIDLookups off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPDoQuotaLookups -- 开启LDAP配额限制

语法:LDAPDoQuotaLookups [on off] ["base-dn"] ["quota-filter-template"] ["default-quota"]

默认:LDAPDoQuotaLookups off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPDoUIDLookups -- 查找LDAP的UID目录

语法:LDAPDoUIDLookups [on off] ["uid-base-dn"] ["uid-filter-template"]

默认:LDAPDoUIDLookups off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPForceDefaultGID -- 强制所有LDAP用户组使用相同的GID

语法:LDAPForceDefaultGID [on off]

默认:LDAPForceDefaultGID off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPForceDefaultUID -- 强制所有LDAP用户使用相同的UID

语法:LDAPForceDefaultGID [on off]

默认:LDAPForceDefaultGID off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPForceGeneratedHomedir -- 强制所有LDAP用户目录使用默认的前缀/后缀

语法:LDAPForceGeneratedHomedir [on off] [directory-mode]

默认:LDAPForceGeneratedHomedir off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPForceHomedirOnDemand -- <已废弃>

--------------------------------------------------------------------

LDAPGenerateHomedir -- 开启自动创建LDAP用户目录

语法:LDAPGenerateHomedir [on off] [directory-mode]

默认:LDAPGenerateHomedir off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPGenerateHomedirPrefix -- 按需要使用一个前缀创建用户目录

语法:LDAPGenerateHomedirPrefix [leading-path]

默认:LDAPGenerateHomedirPrefix off

语境:server config, ,

模块:mod_ldap

范例:

--------------------------------------------------------------------

LDAPNegativeCache -- 使LDAP缓存查找

语法:LDAPNegativeCache [on off]

默认:LDAPNegativeCache off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPProtocolVersion -- 设置LDAP协议版本

语法:LDAPProtocolVersion [2 | 3]

默认:LDAPProtocolVersion 3

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPQueryTimeout -- 设置一个LDAP查询超时

语法:LDAPQueryTimeout [timeout-seconds]

默认:LDAPQueryTimeout default-api-timeout

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPSearchScope -- 指定用于LDAP搜索范围查询

语法:LDAPSearchScope [onelevel subtree]

默认:LDAPSearchScope subtree

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPServer -- 设置LDAP服务器和端口

语法:LDAPServer ["hostname1:port1 hostname2:port2"]

默认:LDAPServer "localhost"

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LDAPUseTLS -- 使TLS协议/SSL连接到LDAP服务器。

语法:LDAPUseTLS [on off]

默认:LDAPUseTLS off

语境:server config, ,

模块:mod_ldap

--------------------------------------------------------------------

LeechRatioMsg -- 设置Ratio出错信息

语法:LeechRatioMsg [ LeechRatioMsg foo1 foo2 foo3 foo4]

语境:, , ,.ftpaccess

模块:mod_ratio

范例:LeechRatioMsg "please upload as well as download"

--------------------------------------------------------------------

Limit -- 设定命令、动作、性能控制

语法:Limit []

语境:server config, , , , , .ftpaccess

--------------------------------------------------------------------

ListOptions -- 设定客户端使用list命令的显示格式

语法:ListOptions ["options string"] [ ["strict"]]

语境:server config, , , , , .ftpaccess

模块:mod_ls

范例:ListOptions "-a"

--------------------------------------------------------------------

LogFormat -- 设置日志格式

语法:LogFormat [ LogFormat nickname "format-string"]

默认:LogFormat default "%h %l %u %t "%r" %s %b"

语境:server config

模块:mod_log

--------------------------------------------------------------------

LoginPasswordPrompt -- 设置登陆密码提示

语法:LoginPasswordPrompt [on|off]

默认:LoginPasswordPrompt on

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

MasqueradeAddress -- 配置服务器地址显示给客户端

语法:MasqueradeAddress [ip-address|dns-hostname]

语境:server config,

范例:MasqueradeAddress nat-gw.mydomain.com

--------------------------------------------------------------------

MaxClients -- 客户端数量限制

语法:MaxClients [number|none [message]]

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

MaxClientsPerClass -- 以类的型式限制客户端数

语法:MaxClientsPerClass [name number|"none" [message]]

语境:server config, ,

模块:mod_auth

范例:MaxClientsPerClass foo1 3 "Only one such client at a time."

--------------------------------------------------------------------

MaxClientsPerHost -- 限制同一主机客户端数量

语法:MaxClientsPerHost [number|none [message]]

默认:MaxClientsPerHost none

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

MaxClientsPerUser -- 限制同一用户的客户端数量

语法:MaxClientsPerUser [number|none [message]]

默认:MaxClientsPerUser none

语境:server config, , ,

模块:mod_auth

范例:MaxClientsPerUser 2 "Only one such user at a time."

--------------------------------------------------------------------

MaxConnectionRate -- 限制服务器TCP连接数

语法:MaxConnectionRate [connections per second]

语境:server config

范例:MaxConnectionRate 4

--------------------------------------------------------------------

MaxConnectionsPerHost -- 限制同一主机连接数

语法:MaxConnectionsPerHost [number|none [message]]

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

MaxHostsPerUser -- 限制同一用户使用主机数量

语法:MaxHostsPerUser [ number|none [message]]

语境:server config, , ,

模块:mod_auth

范例:MaxHostsPerUser 1 "对不起,你已经在其它地方登录了。"

--------------------------------------------------------------------

MaxInstances -- 限制服务器子进程数量

语法:MaxInstances [number]

语境:server config

--------------------------------------------------------------------

MaxLoginAttempts -- 设置密码尝试次数

语法:MaxLoginAttempts [number]

默认:MaxLoginAttempts 3

语境:server config, ,

模块:mod_auth

范例:<需要syslog机制>

--------------------------------------------------------------------

MaxRetrieveFileSize -- 下载文件大小限制

语法:MaxRetrieveFileSize [ number|"*" units ["user"|"group"|"class" expression]]

语境:server config, , , , , .ftpaccess

模块:mod_xfer

范例:MaxRetrieveFileSize 1 Gb

--------------------------------------------------------------------

MaxStoreFileSize -- 上传文件大小限制

语法:MaxStoreFileSize [ number|"*" units ["user"|"group"|"class" expression]]

语境:server config, , , , , .ftpaccess

模块:mod_xfer

范例:MaxStoreFileSize 50 Kb user anonymous

--------------------------------------------------------------------

MultilineRFC2228 -- 开启RFC2228扩展模式

语法:MultilineRFC2228 [on|off]

默认:MultilineRFC2228 off

语境:server config

--------------------------------------------------------------------

Order -- 配置allow和deny的优先级

语法:Order [allow,deny|deny,allow]

默认:Order allow,deny

语境:

--------------------------------------------------------------------

PassivePorts -- 指定ftp数据端口使用范围

语法:PassivePorts [min-pasv-port max-pasv-port]

语境:server config, ,

范例:PassivePorts 49152 65534

--------------------------------------------------------------------

PathAllowFilter -- 匹配所有新上传的文件,返回为“假”将不会成功

语法:PathAllowFilter [regular-expression]

语境:server config, , , , , .ftpaccess

范例:PathAllowFilter ^[a-z0-9._-]+$

--------------------------------------------------------------------

PathDenyFilter -- 匹配所有新上传的文件,返回为“假”将成功

语法:PathDenyFilter [regular-expression]

默认:server config, , , , , .ftpaccess

范例:PathDenyFilter "(\\.ftpaccess|\\.htaccess)$"

--------------------------------------------------------------------

PersistentPasswd -- 使用unix的/etc/passwd检查帐户

语法:PersistentPasswd [on|off]

语境:server config

模块:mod_auth_unix

--------------------------------------------------------------------

PidFile -- 设置主进程pid文件

语法:PidFile [filename]

语境:server config,

--------------------------------------------------------------------

Port -- 设置ftp控制端口

语法:Port [port-number]

默认:Port 21

语境:server config,

--------------------------------------------------------------------

RadiusAcctServer -- 指定RADIUS服务器

语法:RadiusAcctServer [server[:port] shared-secret [timeout]]

语境:server config, ,

模块:mod_radius

--------------------------------------------------------------------

RadiusEngine -- 开启RADIUS支持

语法:RadiusEngine [on|off]

默认:RadiusEngine off

语境:server config, ,

模块:mod_radius

--------------------------------------------------------------------

RadiusLog -- 设置RADIUS日志记录文件

语法:RadiusLog ["file"|none]

语境:server config, ,

模块:mod_radius

--------------------------------------------------------------------

RadiusRealm -- 设置认证区域

语法:RadiusRealm [realm]

语境:server config, ,

模块:mod_radius

范例:RadiusRealm .castaglia.org

--------------------------------------------------------------------

RadiusUserInfo -- 设置RADIUS登陆信息

语法:RadiusUserInfo [uid gid home shell [suppl-group-names suppl-group-ids]]

语境:server config, ,

模块:mod_radius

--------------------------------------------------------------------

RatioFile -- 指定Ratios记录文件

语法:RatioFile [RatioFile]

语境:, , ,.ftpaccess

模块:mod_ratio

范例:RatioFile /work/ratio.dat

--------------------------------------------------------------------

Ratios -- 开启Ratios模块支持(上传下载限制)

语法:Ratios [on off]

语境:, , ,.ftpaccess

模块:mod_ratio

--------------------------------------------------------------------

RatioTempFile -- Ratio临时文件

语法:RatioTempFile [RatioTempFile]

语境:, , ,.ftpaccess

模块:mod_ratio

--------------------------------------------------------------------

RequireValidShell -- 允许基于/etc/shells连接

语法:RequireValidShell [on|off]

默认:RequireValidShell on

语境:server config, , ,

模块:mod_auth

范例:RequireValidShell off

--------------------------------------------------------------------

RewriteCondition -- 定义一条规则重写来自客户端的命令

语法:RewriteCondition [condition pattern]

语境:server config, , , ,

模块:mod_rewrite

范例:RewriteCondition %m STOR

--------------------------------------------------------------------

RewriteEngine -- 启用和禁用mod_rewrite模块

语法:RewriteEngine [on|off]

语境:server config, ,

模块:mod_rewrite

--------------------------------------------------------------------

RewriteLock -- 设置RewriteMaps同步所使用的加锁文件名

语法:RewriteLock [ filename]

语境:server config, ,

模块:mod_rewrite

--------------------------------------------------------------------

RewriteLog -- 设置mod_rewrite日志文件

语法:RewriteLog [file|"none"]

默认:mod_rewrite

语境:server config, ,

模块:mod_rewrite

--------------------------------------------------------------------

RewriteMap -- 定义一个重写地图

语法:RewriteMap [map-name map-type:map-soure]

语境:server config, ,

模块:mod_rewrite

范例:RewriteMap usermap txt:/path/to/usermap.txt

--------------------------------------------------------------------

RewriteRule -- 定义重写规则

语法:RewriteRule [pattern substitution]

语境:server config, , , ,

模块:mod_rewrite

范例:RewriteRule ^(.*) "${replace:!$1! !_}"

--------------------------------------------------------------------

RLimitCPU -- CPU资源限制

语法:RLimitCPU [["daemon"|"session"|"none"] soft-limit|"max" [hard-limit|"max"]]

语境:server config

--------------------------------------------------------------------

RLimitMemory -- 内存资源限制

语法:RLimitMemory [["daemon"|"session"|"none"] soft-limit[units]|"max" [hard-limit[units]|"max"]]

语境:server config

--------------------------------------------------------------------

RLimitOpenFiles -- 文件句柄限制

语法:RLimitOpenFiles [["daemon"|"session"|"none"] soft-limit|"max" [hard-limit|"max"]]

语境:server config

--------------------------------------------------------------------

RootLogin -- root用户登录许可

语法:RootLogin [on|off]

默认:RootLogin off

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

RootRevoke -- 完全丢弃root权限

语法:RootRevoke [on|off]

默认:RootRevoke off

语境:server config, , ,

模块:mod_auth

--------------------------------------------------------------------

SaveRatios -- 保存Ratios数据,由RatioFile指定文件。

语法:SaveRatios [on off]

语境:, , ,.ftpaccess

模块:mod_ratio

--------------------------------------------------------------------

ScoreboardFile -- 跟踪会话记录文件

语法:ScoreboardFile [file]

默认:ScoreboardFile /usr/local/var/proftpd.scoreboard

语境:server config

--------------------------------------------------------------------

ServerAdmin  -- 设置系统管理员邮箱

语法:ServerAdmin ["admin-email-address"]

默认:ServerAdmin root@[ServerName]

语境:server config,

--------------------------------------------------------------------

ServerIdent -- 客户端连接显示信息

语法:ServerIdent [off|on [identification string]]

默认:ServerIdent on "ProFTPD [version] Server (server name) [hostname]"

语境:server config, ,

范例:ServerIdent on "Welcome to ftp.linux.co.uk"

--------------------------------------------------------------------

ServerLog -- 服务器日专文件

语法:ServerLog [path]

语境:server config, ,

模块:mod_log

--------------------------------------------------------------------

ServerName -- 服务器名称显示给用户

语法:ServerName ["name"]

默认:ServerName "ProFTPD Server [version]"

语境:server config,

--------------------------------------------------------------------

ServerType -- 配置服务器运行模式standalone和inetd

语法:ServerType [ServerType type-identifier]

默认:ServerType standalone

语境:server config

--------------------------------------------------------------------

SetEnv -- 增加和改变环境变量

语法:SetEnv [key value]

语境:server config, ,

范例:SetEnv ODBCINI /usr/local/etc/odbc.ini

--------------------------------------------------------------------

ShowSymlinks -- 切换显示符号链接

语法:ShowSymlinks [on|off]

默认:ShowSymlinks On

语境:server config, , ,

模块:mod_ls

--------------------------------------------------------------------

SocketBindTight -- 设置tcp/ip套接字如何创建

语法:SocketBindTight [on|off]

默认:SocketBindTight off

语境:server config

--------------------------------------------------------------------

SocketOptions -- 套接字选项

语法:SocketOptions [[maxseg ] [rcvbuf ] [sndbuf ]]

语境:server config,

--------------------------------------------------------------------

SQLAuthenticate -- 指定认证方法和如何鉴别

语法1:SQLAuthenticate [on off]

语法2:SQLAuthenticate [users] [groups] [userset [fast]] [groupset [fast]]

默认:SQLAuthenticate on

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLAuthTypes -- 设置认证类型和检查顺序

语法:SQLAuthTypes [[OpenSSL]] [ [Crypt]] [ [Backend]] [ [Plaintext]] [ [Empty]]

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLBackend -- 设置sql模块

语法:SQLBackend [backend]

默认:SQLBackend Depends

语境:server config, ,

模块:mod_sql

范例:SQLBackend postgres

--------------------------------------------------------------------

SQLConnectInfo -- 设置连接sql信息:数据库、主机、用户、密码...

语法:SQLConnectInfo [connection-info] [ [username]] [ [password]] [ [policy]]

语境:server config, ,

模块:mod_sql

范例:SQLConnectInfo ftpusers@foo.com:3000 admin mypassword 30

--------------------------------------------------------------------

SQLDefaultGID -- 设置sql默认的用户组GID

语法:SQLDefaultGID [defaultgid]

默认:SQLDefaultGID 65533

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLDefaultHomedir -- 设置sql用户默认主目录

语法:SQLDefaultHomedir [path]

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLDefaultUID -- 设置sql用户默认id

语法:SQLDefaultUID [defaultuid]

默认:SQLDefaultUID 65533

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLEngine -- 启用mod_sql模块

语法:SQLEngine [on|off|auth|log]

默认:SQLEngine on

语境:server config, , ,

模块:mod_sql

--------------------------------------------------------------------

SQLGroupInfo -- 配置sql数据库用户组表结构

语法:SQLGroupInfo [group-table group-name gid members]

默认:SQLGroupInfo "groups groupname gid members"

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLGroupWhereClause -- 配置一个条件查询用户组

语法:SQLGroupWhereClause [where-clause]

默认:SQLGroupWhereClause off

语境:server config, ,

模块:mod_sql

范例:SQLGroupWhereClause "LoginAllowed = 'true'"

--------------------------------------------------------------------

SQLHomedirOnDemand -- <已废弃>

--------------------------------------------------------------------

SQLLog -- 有条件的使用sql记录用户日志信息

语法:SQLLog [ cmd-set query-name ["IGNORE_ERRORS"]

语境:server config, ,

模块:mod_sql

范例:

SQLLog RETR,STOR insertfileinfo

SQLNamedQuery insertfileinfo INSERT "'%f', %b, '%u@%v', now()" filehistory

--------------------------------------------------------------------

SQLLogFile -- 指定一个日志文件为mod_sql调试和日志

语法:SQLLogFile [file]

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLMinID -- 同时设置SQLMinUserGID 和 SQLMinUserID

语法:SQLMinID [minimum-id]

默认:SQLMinID 999

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLMinUserGID -- 检查用户组的GID,如果小于SQLMinUserGID则返回SQLDefaultGID

语法:SQLMinUserGID [minimum-gid]

默认:SQLMinUserGID 999

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLMinUserUID -- 检查用户组的ID,如果小于SQLMinUserID则返回SQLDefaultID

语法:SQLMinUserUID [minimum-uid]

默认:SQLMinUserUID 999

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLNamedQuery -- 指定一个查询和一个标识符用于SQLShowInfo和SQLLog

语法:SQLNamedQuery ["name" limit|regex|ip value]

默认:

语境:server config, , , , , .ftpaccess

模块:mod_sql

--------------------------------------------------------------------

SQLNegativeCache -- 开启sql查询缓存

语法:SQLNegativeCache [on off]

默认:SQLNegativeCache off

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLShowInfo -- 可用于任何命令成功后发送信息给客户端

语法:SQLShowInfo [cmd-set numeric query-string]

语境:server config, ,

模块:mod_sql

范例:

SQLNamedQuery count SELECT "count from users where userid='%u'"

SQLShowInfo PASS "230" "You've logged on %{count} times, %u"

--------------------------------------------------------------------

SQLUserInfo -- 配置SQL用户表

语法:SQLUserInfo [user-table user-name passwd uid gid home-dir shell]

默认:SQLUserInfo "users userid passwd uid gid homedir shell"

语境:server config, ,

模块:mod_sql

--------------------------------------------------------------------

SQLUserWhereClause -- 设置一个条件用于用户查询

语法:SQLUserWhereClause [where-clause]

语境:server config, ,

模块:mod_sql

范例:SQLUserWhereClause "LoginAllowed = 'true'"

--------------------------------------------------------------------

StoreUniquePrefix -- 设置一个前缀添加到文件名

语法:StoreUniquePrefix ["prefix"]

语境:server config, , , , , .ftpaccess

模块:mod_xfer

范例:StoreUniquePrefix "Wibble"

--------------------------------------------------------------------

SyslogFacility -- 设置日志机制

语法:SyslogFacility [SyslogFacility facility-level]

语境:server config

--------------------------------------------------------------------

SyslogLevel -- 日志级别

语法:SyslogLevel [emerg|alert|crit|error|warn|notice|info|debug]

语境:server config, ,

--------------------------------------------------------------------

SystemLog -- 重定向日志文件

语法:SystemLog [filename|NONE]

语境:server config

模块:mod_log

--------------------------------------------------------------------

TCPAccessFiles -- 会话(allow和deny)日志文件

语法:TCPAccessFiles [allow-filename deny-filename]

语境:server config, , ,

模块:mod_wrap

--------------------------------------------------------------------

TCPAccessSyslogLevels -- 会话日志级别

语法:TCPAccessSysl

推荐阅读
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 如何实现织梦DedeCms全站伪静态
    本文介绍了如何通过修改织梦DedeCms源代码来实现全站伪静态,以提高管理和SEO效果。全站伪静态可以避免重复URL的问题,同时通过使用mod_rewrite伪静态模块和.htaccess正则表达式,可以更好地适应搜索引擎的需求。文章还提到了一些相关的技术和工具,如Ubuntu、qt编程、tomcat端口、爬虫、php request根目录等。 ... [详细]
  • Nginx使用AWStats日志分析的步骤及注意事项
    本文介绍了在Centos7操作系统上使用Nginx和AWStats进行日志分析的步骤和注意事项。通过AWStats可以统计网站的访问量、IP地址、操作系统、浏览器等信息,并提供精确到每月、每日、每小时的数据。在部署AWStats之前需要确认服务器上已经安装了Perl环境,并进行DNS解析。 ... [详细]
  • 在Docker中,将主机目录挂载到容器中作为volume使用时,常常会遇到文件权限问题。这是因为容器内外的UID不同所导致的。本文介绍了解决这个问题的方法,包括使用gosu和suexec工具以及在Dockerfile中配置volume的权限。通过这些方法,可以避免在使用Docker时出现无写权限的情况。 ... [详细]
  • 本文介绍了数据库的存储结构及其重要性,强调了关系数据库范例中将逻辑存储与物理存储分开的必要性。通过逻辑结构和物理结构的分离,可以实现对物理存储的重新组织和数据库的迁移,而应用程序不会察觉到任何更改。文章还展示了Oracle数据库的逻辑结构和物理结构,并介绍了表空间的概念和作用。 ... [详细]
  • 本文介绍了如何使用php限制数据库插入的条数并显示每次插入数据库之间的数据数目,以及避免重复提交的方法。同时还介绍了如何限制某一个数据库用户的并发连接数,以及设置数据库的连接数和连接超时时间的方法。最后提供了一些关于浏览器在线用户数和数据库连接数量比例的参考值。 ... [详细]
  • Oracle Database 10g许可授予信息及高级功能详解
    本文介绍了Oracle Database 10g许可授予信息及其中的高级功能,包括数据库优化数据包、SQL访问指导、SQL优化指导、SQL优化集和重组对象。同时提供了详细说明,指导用户在Oracle Database 10g中如何使用这些功能。 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • 在说Hibernate映射前,我们先来了解下对象关系映射ORM。ORM的实现思想就是将关系数据库中表的数据映射成对象,以对象的形式展现。这样开发人员就可以把对数据库的操作转化为对 ... [详细]
  • 本文介绍了在Mac上搭建php环境后无法使用localhost连接mysql的问题,并通过将localhost替换为127.0.0.1或本机IP解决了该问题。文章解释了localhost和127.0.0.1的区别,指出了使用socket方式连接导致连接失败的原因。此外,还提供了相关链接供读者深入了解。 ... [详细]
  • 本文介绍了Linux系统中正则表达式的基础知识,包括正则表达式的简介、字符分类、普通字符和元字符的区别,以及在学习过程中需要注意的事项。同时提醒读者要注意正则表达式与通配符的区别,并给出了使用正则表达式时的一些建议。本文适合初学者了解Linux系统中的正则表达式,并提供了学习的参考资料。 ... [详细]
  • Ubuntu 9.04中安装谷歌Chromium浏览器及使用体验[图文]
    nsitionalENhttp:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd ... [详细]
  • 高质量SQL书写的30条建议
    本文提供了30条关于优化SQL的建议,包括避免使用select *,使用具体字段,以及使用limit 1等。这些建议是基于实际开发经验总结出来的,旨在帮助读者优化SQL查询。 ... [详细]
  • Linux如何安装Mongodb的详细步骤和注意事项
    本文介绍了Linux如何安装Mongodb的详细步骤和注意事项,同时介绍了Mongodb的特点和优势。Mongodb是一个开源的数据库,适用于各种规模的企业和各类应用程序。它具有灵活的数据模式和高性能的数据读写操作,能够提高企业的敏捷性和可扩展性。文章还提供了Mongodb的下载安装包地址。 ... [详细]
  • 恶意软件分析的最佳编程语言及其应用
    本文介绍了学习恶意软件分析和逆向工程领域时最适合的编程语言,并重点讨论了Python的优点。Python是一种解释型、多用途的语言,具有可读性高、可快速开发、易于学习的特点。作者分享了在本地恶意软件分析中使用Python的经验,包括快速复制恶意软件组件以更好地理解其工作。此外,作者还提到了Python的跨平台优势,使得在不同操作系统上运行代码变得更加方便。 ... [详细]
author-avatar
欧毅儒
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有