Apache Reference Manual (4)_PHP教程
程序员文章站
2022-05-25 10:23:46
...
Syntax:
Context: server config, virtual host
Status: Core.
Compatibility: Available in Apache 1.3 and later
would match directories in /www/ that consisted of three numbers.
See Also:
See also: How Directory, Location and Files sections work for an explanation of how these different sections are combined when a request is received
--------------------------------------------------------------------------------
DocumentRoot directive
Syntax: DocumentRoot directory-filename
Default: DocumentRoot /usr/local/apache/htdocs
Context: server config, virtual host
Status: core
This directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document. Example:
DocumentRoot /usr/web
then an access to http://www.my.host.com/index.html refers to /usr/web/index.html.
There appears to be a bug in mod_dir which causes problems when the DocumentRoot has a trailing slash (i.e., "DocumentRoot /usr/web/") so please avoid that.
--------------------------------------------------------------------------------
ErrorDocument directive
Syntax: ErrorDocument error-code document
Context: server config, virtual host, directory, .htaccess
Status: core
Override: FileInfo
Compatibility: The directory and .htaccess contexts are only available in Apache 1.1 and later.
推荐阅读
-
第四节 构造函数和析构函数 [4]_PHP教程
-
PHP_EOL使用 Apache Mina框架实践_PHP教程
-
由php的call_user_func传reference引发的思考_PHP教程
-
韩顺平 PHP视频教程 zend framework 第1讲 ——第4讲 札记心得
-
windows环境下面安装Apache2.4+MySql5.7+PHP5.6,apache2.4mysql5.7_PHP教程
-
Apache2.4 authz_core_module模块使用,authzcoreerror_PHP教程
-
PHP函数索引4_PHP教程
-
CentOS下与Apache连接的PHP多版本共存方案实现详解,_PHP教程
-
apache中为php 设置虚拟目录,apache虚拟目录_PHP教程
-
laravel 4安装及入门图文教程_PHP