首页 > 代码库 > apache的httpd.conf翻译

apache的httpd.conf翻译

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

这是Apache HTTP Server的主配置文件。它包括了
# configuration directives that give the server its instructions.

配置指令【directives】,这些指令给服务器服务器指令【instructions】【】
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.

查看<URL:http://httpd.apache.org/docs/2.4/>以取得更多信息
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.

特别指出,查看<URL:http://httpd.apache.org/docs/2.4/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.  

不要只是简单阅读这里的每条指令而不理解它们的所做所为【真实含义】。这里只是一种提示和提醒。如果你不能确定【它们的含义】,请参阅在线文档。特此警告!
#
# 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/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
# will be interpreted as ‘/logs/access_log‘.
#

关于配置文件和日志文件的名字:如果你使用了以斜杠“/“开始的指定了多个服务器控制文件名,那么服务器将使用那些绝对路径。

如果你没有以斜杠“/“开始文件名,那么服务器根路径(ServerRoot)就是相对的---所以,像"logs/access_log"这样的服务器根路径就将被服务器解释成加上"/usr/local/apache2"的"/usr/local/apache2/logs/access_log",反之"/logs/access_log"将被服务器解释成"/logs/access_log"
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.