Apache Reference Manual (1)_PHP教程
程序员文章站
2022-06-12 11:28:44
...
Apache Core Features
These configuration parameters control the core Apache features, and are always available.
AccessConfig directive
Syntax: AccessConfig filename
Default: AccessConfig conf/access.conf
Context: server config, virtual host
Status: core
The server will read this file for more directives after reading the ResourceConfig file. Filename is relative to the ServerRoot. This feature can be disabled using:
AccessConfig /dev/null
Historically, this file only contained sections; in fact it can now contain any server directive allowed in the server config context.
--------------------------------------------------------------------------------
AccessFileName directive
Syntax: AccessFileName filename filename ...
Default: AccessFileName .htaccess
Context: server config, virtual host
Status: core
Compatibility: AccessFileName can accept more than one filename only in Apache 1.3 and later
When returning a document to the client the server looks for the first existing access control file from this list of names in every directory of the path to the document, if access control files are enabled for that directory. For example:
AccessFileName .acl
before returning the document /usr/local/web/index.html, the server will read /.acl, /usr/.acl, /usr/local/.acl and /usr/local/web/.acl for directives, unless they have been disabled with
AllowOverride None
--------------------------------------------------------------------------------
AddModule directive
Syntax: AddModule module module ...
Context: server config
Status: core
Compatibility: AddModule is only available in Apache 1.2 and later
The server can have modules compiled in which are not actively in use. This directive can be used to enable the use of those modules. The server comes with a pre-loaded list of active modules; this list can be cleared with the ClearModuleList directive.
These configuration parameters control the core Apache features, and are always available.
AccessConfig directive
Syntax: AccessConfig filename
Default: AccessConfig conf/access.conf
Context: server config, virtual host
Status: core
The server will read this file for more directives after reading the ResourceConfig file. Filename is relative to the ServerRoot. This feature can be disabled using:
AccessConfig /dev/null
Historically, this file only contained
--------------------------------------------------------------------------------
AccessFileName directive
Syntax: AccessFileName filename filename ...
Default: AccessFileName .htaccess
Context: server config, virtual host
Status: core
Compatibility: AccessFileName can accept more than one filename only in Apache 1.3 and later
When returning a document to the client the server looks for the first existing access control file from this list of names in every directory of the path to the document, if access control files are enabled for that directory. For example:
AccessFileName .acl
before returning the document /usr/local/web/index.html, the server will read /.acl, /usr/.acl, /usr/local/.acl and /usr/local/web/.acl for directives, unless they have been disabled with
AllowOverride None
--------------------------------------------------------------------------------
AddModule directive
Syntax: AddModule module module ...
Context: server config
Status: core
Compatibility: AddModule is only available in Apache 1.2 and later
The server can have modules compiled in which are not actively in use. This directive can be used to enable the use of those modules. The server comes with a pre-loaded list of active modules; this list can be cleared with the ClearModuleList directive.
上一篇: 黑客使用Python能做些什么?
下一篇: PHP传参之传值与传址的区别_PHP
推荐阅读
-
WIN98下Apache1.3.14 + PHP4.0.4的安装_PHP教程
-
Apache Reference Manual (9)
-
PHP邮件注入攻击技术(1)_PHP教程
-
简单介绍win7下搭建apache+php+mysql开发环境,win7apache_PHP教程
-
PHP和Mysqlweb应用开发核心技术-第1部分 Php基础-2 php语言介绍_PHP教程
-
关于本地计算机无法启动Apache2,计算机启动Apache2_PHP教程
-
1. 引子_PHP教程
-
在Windows下安装Apache + PHP3_PHP教程
-
windows8.1 下搭建配置apache+php+mysql,windows8.1apache_PHP教程
-
Joomla使用Apache重写模式的方法,joomlaapache_PHP教程