当前位置 主页 > 服务器问题 > Linux/apache问题 >

    APACHE 配置文件中文版 httpd.conf FOR Apache 2.2.13

    栏目:Linux/apache问题 时间:2018-11-04 14:36

    APACHE配置文件中文版 httpd.conf FOR Apache 2.2.13 ,综合网上2.0版本的翻译,加入自己的理解,补充完善。 #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # 这是Apache server的主配置文件. 它包含配置指令,来指示服务器。
    # 参考 http://httpd.apache.org/docs/2.2/mod/directives.html 了解关于指令的详细信息。
    # 另外,参看 http://httpd.apache.org/docs/2.2/mod/directives.html 获取每个配置指令的讨论。


    # 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 "E:/usr/Apache2.2" will be interpreted by the
    # server as "E:/usr/Apache2.2/logs/foo.log".
    #
    # 配置和日志文件名:如果你所指定的文件名以“/”(在Win32中以“盘符:/”)开头,
    # 服务器将以绝对路径来处理。如果文件名不以“/”开头,则以相对路径处理,
    # 相对于服务器根(Serverroot)。因此“logs/foo.log”,如果服务器根目录
    # 为“E:/usr/Apache2.2”,则服务器解释为“E:/usr/Apache2.2/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”)