Apache Reference Manual (6)_PHP教程
程序员文章站
2022-05-15 11:17:14
...
KeepAliveTimeout directive
Syntax: KeepAliveTimeout seconds
Default: KeepAliveTimeout 15
Context: server config
Status: Core
Compatibility: KeepAliveTimeout is only available in Apache 1.1 and later.
The number of seconds Apache will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the Timeout directive applies.
--------------------------------------------------------------------------------
directive
Syntax: ...
Context: any
Status: core
Access controls are normally effective for all access methods, and this is the usual desired behaviour. In the general case, access control directives should not be placed within a section.
The purpose of the directive is to restrict the effect of the access controls to the nominated HTTP methods. For all other methods, the access restrictions that are enclosed in the bracket will have no effect. The following example applies the access control only to the methods POST, PUT, and DELETE, leaving all other methods unprotected:
require valid-user
The method names listed can be one or more of: GET, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, and UNLOCK. The method name is case-sensitive. If GET is used it will also restrict HEAD requests.
--------------------------------------------------------------------------------
directive
Syntax: ...
Context: any
Status: core
Compatibility: Available in Apache 1.3.5 and later
and are used to enclose a group of access control directives which will then apply to any HTTP access method not listed in the arguments; i.e., it is the opposite of a section and can be used to control both standard and nonstandard/unrecognized methods. See the documentation for for more details.
Syntax: KeepAliveTimeout seconds
Default: KeepAliveTimeout 15
Context: server config
Status: Core
Compatibility: KeepAliveTimeout is only available in Apache 1.1 and later.
The number of seconds Apache will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the Timeout directive applies.
--------------------------------------------------------------------------------
Syntax:
Context: any
Status: core
Access controls are normally effective for all access methods, and this is the usual desired behaviour. In the general case, access control directives should not be placed within a
The purpose of the
require valid-user
The method names listed can be one or more of: GET, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, and UNLOCK. The method name is case-sensitive. If GET is used it will also restrict HEAD requests.
--------------------------------------------------------------------------------
Syntax:
Context: any
Status: core
Compatibility: Available in Apache 1.3.5 and later
上一篇: PHP中插件机制的一种实现方案
推荐阅读
-
非集成环境的php运行环境(Apache配置、Mysql)搭建安装图文教程
-
阿里云Win2016安装Apache和PHP环境图文教程
-
APMServ一键快速搭建Apache+PHP+MySQL+Nginx+Memcached+ASP运行平台教程
-
Ubuntu彻底卸载MySQL、Apache2和Php的方法教程
-
阿里云Win2016安装Apache和PHP环境图文教程
-
IIS6下配置fastcgi的php的教程
-
基于Windows下Apache PHP5.3.1安装教程
-
CentOS7+apache+php7+mysql5.7配置教程详解
-
centos下yum搭建安装linux+apache+mysql+php环境教程
-
WampServer下安装多个版本的PHP、mysql、apache图文教程