ApacheHTTP latest official configuration (Chinese Version)
Source: Internet
Author: User
Article Title: ApacheHTTP's latest official configuration (Chinese version ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Abstr: The Chinese version of Apache's latest official configuration file. The web server administrator can easily configure Apache.
#
# 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
# Configuration directives that give the server its instructions.
# See For detailed information about
# The directives.
# This is the main configuration file of Apache server. It contains configuration instructions to instruct the server
# Refer to the http://httpd.apache.org/docs-2.0 for instructions
# 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.
# Not just reading this instruction, but understanding what the instruction has done. Here only serves as a prompt.
# If you are not clear, refer to the online documentation. Note
# The configuration directives are grouped into three basic sections:
# Configuration file batch order is divided into three basic groups
#1. Directives that control the operation of the Apache server process as
# Whole (the 'Global environment ').
#1. commands for controlling global operations of Apache server (global environment variables ).
#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. Configure the commands of the master service or default service. It responds to requests other than the virtual host.
# It also contains some default VM Parameters
#3. Settings for virtual hosts, which allow Web requests to be sent
# Different IP addresses or hostnames and have them handled by
# Same Apache server process.
#3. VM settings, so that requests sent to different ip addresses or host names can be processed by the same Apache service #
# Configuration and logfile names: If the filenames you specify for Example
# Of the server's control files begin with "/" (or "drive:/" for Win32),
# 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
# Server as "C:/Program Files/Apache Group/Apache2/logs/foo. log ".
# Configuration and Log File Name: if the specified file name starts with "/" (in Win32, it starts with a drive letter:/), the server will process it in an absolute path. If it does not start with "/", it is not interpreted as relative to ServerRoot. Therefore, for logs/foo. for log, when ServerRoot is "C:/Program Files/Apache Group/Apache2 ",
# NOTE: Where filenames are specified, you must use forward slashes
# Instead of backslashes (e.g., "c:/apache" instead of "c: \ apache ").
Note: In the file name definition, a forward slash must be used instead of a backslash, such as c:/apache rather than 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.
If the disc is omitted, the default value is the drive letter of apache.exe.
We recommend that you always use an explicit drive letter in the absolute path to eliminate misunderstandings.
### Section 1: Global Environment
# Part 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.
# The commands in this section will affect the entire Apache server, for example, the number of concurrent requests it can process or where it can find its configuration file
#
# ServerRoot: The top of the directory tree under which the server's
# Configuration, error, and log files are kept.
# ServerRoot: server configuration, root directory of errors and log files
# NOTE! If you intend to place this on an NFS (or otherwise network)
# Mounted filesystem then please read the LockFile documentation (available
# );
# You will save yourself a lot of trouble.
# Note: If you save it to NFS or the mounted file system on the network, read the LockFile document at http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile, which will solve your problems.
# Do NOT add a slash at the end of the directory path.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service