Apache Reference Manual (4)
程序员文章站
2024-02-19 10:39:58
...
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.
上一篇: 正则表达式系统教程(四)_PHP教程
下一篇: MySQL字符集GBK转换到UTF8
推荐阅读
-
Apache Reference Manual (4)
-
Apache Reference Manual (3)
-
Apache Reference Manual (1)
-
Apache Reference Manual (12)
-
Apache1.3.x+PHP4 Beta3在Windows 9x/NT下的安装与配置
-
APACHE(4)
-
Apache Reference Manual (9)
-
jsp+phpWindows2000下整合Apache2与Tomcat4
-
Win2003下APACHE + PHP5 + MYSQL4 + PHPMYADMIN的简易安装配置_PHP教程
-
RedHat上安装apache+gd1.8.3+php4+tomcat+sybase+oracle+mysql黄金攻略