APACHE 配置文件中文版 httpd.conf FOR Apache 2.2.13
2024-08-27 18:28:13
供稿:網友
#
# 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