摘自httpd服务器的的httpd.conf
# 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.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# 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'
这是Apache服务器的主要配置文件。这个文件包含一些配置指令和这些指令对服务器的说明。 具体的信息请看URL:http://httpd.apache.org/docs/2.4/ 特别的,看URL:http://httpd.apache.org/docs/2.4/mod/directives.html对于每个配置指令的解释。
不要简单阅读指令说明而没有去理解这些指令做了什么。这个文件中指令的说明仅仅是提示和参看。如果你不理解你可以参考在线文档。你需要警醒一下了。
配置和日志文件的名字:如果你的文件名是以“/”(或者“drive:/”在Win32),这个服务将会使用明确的路径。如果文件名不是以“/”开头,指令ServerRoot的值将会被准备(比如logs/access_log, 而ServerRoot被设置为/usr/local/apache2)将会被解释为“usr/local/apache2/logs/access_log”。而"/logs/access_log"将会被解释为“/logs/access_log”