#
# BASED UPON The NCSA Server Configuration Files Originally by Rob McCool.
# Refer to the configuration file of the NCSA server, the original version is released by ROB MCCOOL
#
# This is the main apache server configuration file. It Contains the
# Configuration Directives That Give The Server ITS Instructions.
# See
# The directives.
# This is the primary configuration file of Apache Server. It contains configuration instructions to indicate the server
# Please refer to http://httpd.apache.org/docs-2.0 to learn more about the instruction
# Do not simply read the instructions in here without understanding
# what they do. They're here only as hints or transinders. If you are unsure
# Consult the online docs. You have been warned.
# Don't just read this directive, but should understand what the instruction did. Only the role of prompts here.
# If you don't know, please refer to the online document. Special Note
# 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. Control the global operation of the Apache Server (global environment variable).
# 2. Directives That Define the parameters of the 'main' or 'default' Server,
# Which responds to requests That aren't handled by a Virtual host.
# There Directives Also Provide Default Values for the Settings
# Of all....
# 2. Configure instructions for the primary service or the default service, which responds for those outside the virtual host.
# It also contains some of the default parameters of the virtual host
# 3. Settings for Virtual Hosts, Which Allow Web Requests to Be Sent To
# Different IP Addresses or Hostnames And Have The Handled by THE
# Same Apache Server Process.
# 3. Virtual host settings, which makes requests to different IP or hostnames can be processed by the same Apache service # server
# 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".
# Configuration and Log File Name: If the file name you specify is "/" (in Win32 with a disk: /), the server will handle it in an absolute path. If it does not begin with "/", it is not explained with respect to ServerRoot, so for logs / foo.log, when ServerRoot is "C: / Program Files / Apache Group / Apache2", it means
C: / program files / apache group / apache2 / logs / foo.log file
# Note: Where filenames area specified, you must us forward Slashes
# INSTEAD OF BACKSLASHES (E.G., "C: / Apache" INSTEAD OF CAR / APACHE ").
Note that in the definition of the file name, you must use a forward slash, not a backslash, such as C: / Apache instead of C: / Apache
# Ify # if a drive letter is omitted, The Drive on Which apache.exe is located
# Will be used by Default. it is recommented That you always suppfe
# an expenevit drive letter in Absolute Paths, However, To Avoid
# Confusion.
# If the drive letter is omitted, the drive letter in Apache.exe is the default value.
It is recommended to use explicit disk characters in the absolute path, which helps to eliminate misunderstandings.
### section 1: Global Environment
# 一一 部分 全 Global Environment
#
# The Directives in this section affect the Overal Operation of apache,
# Such as the number of concurrent requests it can handle or where it
# Can Find ITS Configuration FILES.
# This section will affect the entire Apache server, such as the number of concurrent requests it can handle or where it can find its configuration file
#
# ServerRoot: The Top of the Directory Tree Which The Server's
# Configuration, Error, And Log Files Are Kept.
# ServerRoot: Server configuration, error, and root directory of log files
# Note! If you intend to place this on an nfs (or otherwise network)
# MOUNTED FileSystem The Read The LockFile Documentation (Available
# at
# You will save yourself.
# Note: If you save it to NFS or on the Mounted file system, you should read the lockfile document, http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile, will be able to resolve Many troublesome you have.
# Do Not Add A Slash at the end of the directory path.
# Do not add slash at the end of the directory
Serverroot "C: / Program Files / Apache Group / Apache2"
ServerRoot: root directory
#
# ScoreboardFile: File Used to Store Internal Server Process Information.
# Ration with unspecified (the default), The scoreboard will be stored in an
# Anonymous Shared Memory Segment, and Will Be Unavailable To Third-Party
# Applications.
ScoreboardFile: Save the processing information inside the server
If not exposed (default), Scoreboard will be saved in anonymous shared memory segment, and for third parties, it is not available.
# Ified # i specified, Ensure That no Two Invocations of apache share the same
# Scoreboard File. The scoreboard filemust be stored on a local disk.
#
If you have defined, you should make sure that both calls of Apache cannot share the same scoreboard. Scoreboard files must be stored on the assignable disk (download [2])