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.

时间: 2024-08-01 21:23:36

apache的httpd.conf翻译的相关文章

Apache配置文件httpd.conf内容翻译

本文已经废弃,现在apache2不依靠httpd.conf来配置. Ubuntu下默认的配置文件是/etc/apache2/sites-available/default 可以修改上面文件来修改apache2配置 目录 [隐藏] 1 原文说明 2 文件全局说明 3 第一区:全局环境参数 4 第二区:“主”服务配置 5 第三区:虚拟主机 原文说明 引自www.linuxsir.org 原文地址:http://www.7880.com/Info/Article-3df0ef00.html 文件全局说

【转】Apache 的 httpd.conf 配置详解

Apache 的 httpd.conf 配置详解 原文链接 http://www.php100.com/html/webkaifa/apache/2009/0418/1192.html ServerRoot /usr/local ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下. ScoreBoardFile /var/run

Apache 配置文件httpd.conf 的含义

ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下. ScoreBoardFile /var/run/httpd.scoreboard httpd使用ScoreBoardFile来维护进程的内部数据,因此通常不需要改变这个参数,除非管理员想在一台计算机上运行几个Apach

解析apache的httpd.conf配置内容

ServerRoot /usr/local ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下. ScoreBoardFile /var/run/ht ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此

Apache配置文件httpd.conf

通过yum安装的httpd,默认情况下其配置文件为/etc/httpd/conf/httpd.conf, 以及/etc/httpd/conf.d/*.conf. 配置文件主要有三部分组成 [[email protected] ~]# grep 'Section' /etc/httpd/conf/httpd.conf  ### Section 1: Global Environment ### Section 2: 'Main' server configuration ### Section 3

Apache 的 httpd.conf 详解

ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下. ScoreBoardFile /var/run/httpd.scoreboard httpd使用ScoreBoardFile来维护进程的内部数据,因此通常不需要改变这个参数,除非管理员想在一台计算机上运行几个Apach

Apache配置文件httpd.conf细说

1.httpd.conf文件位于apache安装目录/conf下2.Listen 88表示监听端口88 此处可以连续写多个端口监听如下: Listen 88 Listen 809 3.目录配置如下: #表示配置"D:/php/myLife"目录的权限 <Directory "D:/php/myLife"> Options Indexes Order Deny,Allow #表示允许所有的用户访问 Allow from all #表示初始页的配置 Dire

Apache配置文件httpd.conf详解

Apache的基本设置主要交由httpd.conf来设定管理,我们要修改Apache的相关设定,主要还是通过修改httpd.cong来实现.下面让我们来看看httpd.conf的内容,它主要分成3大部分:Section 1:Global EnvironmentSection 2:'Main' server configurationSection 3:Virtual Hosts[第一部分]·ServerType standalone这表示Apache是以standalone启动,也可以是inet

linux上安装apache以及httpd.conf基本配置

1.yum安装apache #yum install httpd -y 2.随系统自启动 #chkconfig httpd on 3.开启apache #service httpd start PS:在CentOS里Apache的默认文档路径的位置是在/var/www/html,配置文件的路径是/etc/httpd/conf/httpd.conf.其他的配置存储在/etc/httpd/conf.d/ 文件夹里. 建议删除/etc/httpd/conf.d/下的welcome.conf文件 删除指