Apache HTTP最新官方配置(中译版)

2008-02-23 07:53:59来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

  文章简介:Apache最新官方配置文件中文版。帮忙web服务器管理员更方便的对Apache进行配置。

#

# Based upon the NCSA server configuration files originally by Rob McCool.

#参照NCSA服务器的配置文件,原版由Rob McCool发布

#

# This is the main Apache server configuration file. It contains the

# configuration directives that give the server its instructions.

# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about

# the directives.

#这是Apache server的主配置文件. 它包含配置指令,来指示服务器

#请参考 http://httpd.apache.org/docs-2.0 了解关于指令的详细信息

# Do NOT simply read the instructions in here without understanding

# what they do. They're here only as hints or reminders. If you are unsure

# consult the online docs. You have been warned.

#不要仅仅是阅读本指令,而应该理解指令做了什么。在这里仅起提示的作用。

#如果你不清楚请参阅在线文档。特别提示

# The configuration directives are grouped into three basic sections:

#配置文件批令分为三个基本组

# 1. Directives that control the operation of the Apache server process as a

# whole (the 'global environment').

# 1. 控制Apache server的全局操作的指令(全局环境变量).

# 2. Directives that define the parameters of the 'main' or 'default' server,

# which responds to requests that aren't handled by a virtual host.

# These directives also provide default values for the settings

# of all virtual hosts.

# 2.配置主服务或者默认服务的指令,它针对那些被虚拟主机以外的请求作出响应.

# 它也包含虚拟主机的一些默认参数

# 3. Settings for virtual hosts, which allow Web requests to be sent to

# different IP addresses or hostnames and have them handled by the

# same Apache server process.

# 3. 虚拟主机设置,这使得发往不同的ip或者主机名的请求可以被子同一个Apache服务# 器处理

# Configuration and logfile names: If the filenames you specify for many

# of the server's control files begin with "/" (or "drive:/" for Win32), the

# server will use that explicit path. If the filenames do *not* begin

# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"

# with ServerRoot set to "C:/Program Files/Apache Group/Apache2" will be interpreted by the

# server as "C:/Program Files/Apache Group/Apache2/logs/foo.log".

#配置和日志文件名:如果你所指定的文件名以”/”(在Win32中以盘符:/)开头,服务器将以绝对路径来处理。如果不以”/”开头,则以相对于ServerRoot不解释,所以对于logs/foo.log来讲,当ServerRoot为"C:/Program Files/Apache Group/Apache2”时,则指的是

C:/Program Files/Apache Group/Apache2/logs/foo.log文件

# NOTE: Where filenames are specified, you must use forward slashes

# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").

注意,在文件名的定义中,必须用正斜杠,而不是反斜杠,如c:/apache而不是c:\apache

# If a drive letter is omitted, the drive on which Apache.exe is located

# will be used by default. It is recommended that you always supply

# an explicit drive letter in absolute paths, however, to avoid

# confusion.

#如果省略了盘符,则以Apache.exe所在的盘符为默认值

建议在绝对路径中永远使用显式的盘符,这样有助于消除误解

### Section 1: Global Environment

#第一部分全局环境

#

# The directives in this section affect the overall operation of Apache,

# such as the number of concurrent requests it can handle or where it

# can find its configuration files.

#本部分的指令将影响整个Apache服务器,例如它所能处理的并发请求数或者它在哪里能够找到其配置文件

#

# ServerRoot: The top of the directory tree under which the server's

# configuration, error, and log files are kept.

# ServerRoot: 服务器的配置,错误和日志文件的根目录

# NOTE! If you intend to place this on an NFS (or otherwise network)

# mounted filesystem then please read the LockFile documentation (available

# at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);

# you will save yourself a lot of trouble.

#注意:如果将其保存到NFS上或者网络上mounted的文件系统上,然后应该阅读LockFile文档,http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile,将能解决你的很多麻烦.

# Do NOT add a slash at the end of the directory path.

#不要在目录的末尾加上斜杠

ServerRoot "C:/Program Files/Apache Group/Apache2"

ServerRoot:根目录

#

# ScoreBoardFile: File used to store internal server process information.

# If unspecified (the default), the scoreboard will be stored in an

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:用JNDI绑定tomcat数据源

下一篇:JSP中小型网站适用的一个JDBC数据库联接类