|
 |
栏目导栏 |
|
| |
|
|
|
|
 |
资料搜索 |
|
| |
|
|
|
|
 |
热门文章 |
|
| |
|
|
|
|
 |
最新文章 |
|
| |
|
|
|
| |
| |
|
|
|
|
简介:Apache最新官方配置文件中文版。帮忙web服务器管理员更方便的对Apache进行配置。TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # Based upon the NCSA server configuration files originally by Rob McCool.TYZLinux联盟 TYZLinux联盟 #参照NCSA服务器的配置文件,原版由Rob McCool发布TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # This is the main Apache server configuration file. It contains theTYZLinux联盟 TYZLinux联盟 # configuration directives that give the server its instructions.TYZLinux联盟 TYZLinux联盟 # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information aboutTYZLinux联盟 TYZLinux联盟 # the directives.TYZLinux联盟 TYZLinux联盟 #这是Apache server的主配置文件. 它包含配置指令,来指示服务器TYZLinux联盟 TYZLinux联盟 #请参考 http://httpd.apache.org/docs-2.0 了解关于指令的详细信息TYZLinux联盟 TYZLinux联盟 # Do NOT simply read the instructions in here without understandingTYZLinux联盟 TYZLinux联盟 # what they do. They're here only as hints or reminders. If you are unsureTYZLinux联盟 TYZLinux联盟 # consult the online docs. You have been warned.TYZLinux联盟 TYZLinux联盟 #不要仅仅是阅读本指令,而应该理解指令做了什么。在这里仅起提示的作用。TYZLinux联盟 TYZLinux联盟 #如果你不清楚请参阅在线文档。特别提示TYZLinux联盟 TYZLinux联盟 # The configuration directives are grouped into three basic sections:TYZLinux联盟 TYZLinux联盟 #配置文件批令分为三个基本组TYZLinux联盟 TYZLinux联盟 # 1. Directives that control the operation of the Apache server process as aTYZLinux联盟 TYZLinux联盟 # whole (the 'global environment').TYZLinux联盟 TYZLinux联盟 # 1. 控制Apache server的全局操作的指令(全局环境变量).TYZLinux联盟 TYZLinux联盟 # 2. Directives that define the parameters of the 'main' or 'default' server,TYZLinux联盟 TYZLinux联盟 # which responds to requests that aren't handled by a virtual host.TYZLinux联盟 TYZLinux联盟 # These directives also provide default values for the settingsTYZLinux联盟 TYZLinux联盟 # of all virtual hosts.TYZLinux联盟 TYZLinux联盟 # 2.配置主服务或者默认服务的指令,它针对那些被虚拟主机以外的请求作出响应.TYZLinux联盟 TYZLinux联盟 # 它也包含虚拟主机的一些默认参数TYZLinux联盟 TYZLinux联盟 # 3. Settings for virtual hosts, which allow Web requests to be sent toTYZLinux联盟 TYZLinux联盟 # different IP addresses or hostnames and have them handled by theTYZLinux联盟 TYZLinux联盟 # same Apache server process.TYZLinux联盟 TYZLinux联盟 # 3. 虚拟主机设置,这使得发往不同的ip或者主机名的请求可以被子同一个Apache服务# 器处理TYZLinux联盟 TYZLinux联盟 # Configuration and logfile names: If the filenames you specify for manyTYZLinux联盟 TYZLinux联盟 # of the server's control files begin with "/" (or "drive:/" for Win32), theTYZLinux联盟 TYZLinux联盟 # server will use that explicit path. If the filenames do *not* beginTYZLinux联盟 TYZLinux联盟 # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"TYZLinux联盟 TYZLinux联盟 # with ServerRoot set to "C:/Program Files/Apache Group/Apache2" will be interpreted by theTYZLinux联盟 TYZLinux联盟 # server as "C:/Program Files/Apache Group/Apache2/logs/foo.log".TYZLinux联盟 TYZLinux联盟 #配置和日志文件名:如果你所指定的文件名以”/”(在Win32中以盘符:/)开头,服务器将以绝对路径来处理。如果不以”/”开头,则以相对于ServerRoot不解释,所以对于logs/foo.log来讲,当ServerRoot为"C:/Program Files/Apache Group/Apache2”时,则指的是TYZLinux联盟 TYZLinux联盟 C:/Program Files/Apache Group/Apache2/logs/foo.log文件TYZLinux联盟 TYZLinux联盟 # NOTE: Where filenames are specified, you must use forward slashesTYZLinux联盟 TYZLinux联盟 # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").TYZLinux联盟 TYZLinux联盟 注意,在文件名的定义中,必须用正斜杠,而不是反斜杠,如c:/apache而不是c:\apacheTYZLinux联盟 TYZLinux联盟 # If a drive letter is omitted, the drive on which Apache.exe is locatedTYZLinux联盟 TYZLinux联盟 # will be used by default. It is recommended that you always supplyTYZLinux联盟 TYZLinux联盟 # an explicit drive letter in absolute paths, however, to avoidTYZLinux联盟 TYZLinux联盟 # confusion.TYZLinux联盟 TYZLinux联盟 #如果省略了盘符,则以Apache.exe所在的盘符为默认值TYZLinux联盟 TYZLinux联盟 建议在绝对路径中永远使用显式的盘符,这样有助于消除误解TYZLinux联盟 TYZLinux联盟 ### Section 1: Global EnvironmentTYZLinux联盟 TYZLinux联盟 #第一部分全局环境TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # The directives in this section affect the overall operation of Apache,TYZLinux联盟 TYZLinux联盟 # such as the number of concurrent requests it can handle or where itTYZLinux联盟 TYZLinux联盟 # can find its configuration files.TYZLinux联盟 TYZLinux联盟 #本部分的指令将影响整个Apache服务器,例如它所能处理的并发请求数或者它在哪里能够找到其配置文件TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # ServerRoot: The top of the directory tree under which the server'sTYZLinux联盟 TYZLinux联盟 # configuration, error, and log files are kept.TYZLinux联盟 TYZLinux联盟 # ServerRoot: 服务器的配置,错误和日志文件的根目录TYZLinux联盟 TYZLinux联盟 # NOTE! If you intend to place this on an NFS (or otherwise network)TYZLinux联盟 TYZLinux联盟 # mounted filesystem then please read the LockFile documentation (availableTYZLinux联盟 TYZLinux联盟 # at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);TYZLinux联盟 TYZLinux联盟 # you will save yourself a lot of trouble.TYZLinux联盟 TYZLinux联盟 #注意:如果将其保存到NFS上或者网络上mounted的文件系统上,然后应该阅读LockFile文档,http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile,将能解决你的很多麻烦.TYZLinux联盟 TYZLinux联盟 # Do NOT add a slash at the end of the directory path.TYZLinux联盟 TYZLinux联盟 #不要在目录的末尾加上斜杠TYZLinux联盟 TYZLinux联盟 ServerRoot "C:/Program Files/Apache Group/Apache2"TYZLinux联盟 TYZLinux联盟 ServerRoot:根目录TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # ScoreBoardFile: File used to store internal server process information.TYZLinux联盟 TYZLinux联盟 # If unspecified (the default), the scoreboard will be stored in anTYZLinux联盟 TYZLinux联盟 # anonymous shared memory segment, and will be unavailable to third-partyTYZLinux联盟 TYZLinux联盟 # applications.TYZLinux联盟 TYZLinux联盟 ScoreBoardFile: 保存服务器内部的处理信息TYZLinux联盟 TYZLinux联盟 如果未定议(默认状态),scoreboard将被保存在匿名的共享内存段中,并且对于第三方来讲,是不可获得的TYZLinux联盟 TYZLinux联盟 # If specified, ensure that no two invocations of Apache share the sameTYZLinux联盟 TYZLinux联盟 # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.TYZLinux联盟 TYZLinux联盟 #如果已定义,应确保Apache的两个调用不能共享同一个scoreboard. Scoreboard文件必须存放在可分配的磁盘上TYZLinux联盟 TYZLinux联盟 #ScoreBoardFile logs/apache_runtime_statusTYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # PidFile: The file in which the server should record its processTYZLinux联盟 TYZLinux联盟 # identification number when it starts.TYZLinux联盟 TYZLinux联盟 #PidFile:当服务器起努时,服务器需要将其进程ID号存放在此文件中TYZLinux联盟 TYZLinux联盟 PidFile logs/httpd.pidTYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # Timeout: The number of seconds before receives and sends time out.TYZLinux联盟 TYZLinux联盟 #Timeout:接收和发送数据的超时设置,秒数TYZLinux联盟 TYZLinux联盟 Timeout 300TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # KeepAlive: Whether or not to allow persistent connections (more thanTYZLinux联盟 TYZLinux联盟 # one request per connection). Set to "Off" to deactivate.TYZLinux联盟 TYZLinux联盟 #KeepAlive: 是否支持持久联接(而不是每个请求建一个连接),设off关闭此功能TYZLinux联盟 TYZLinux联盟 KeepAlive OnTYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # MaxKeepAliveRequests: The maximum number of requests to allowTYZLinux联盟 TYZLinux联盟 # during a persistent connection. Set to 0 to allow an unlimited amount.TYZLinux联盟 TYZLinux联盟 # We recommend you leave this number high, for maximum performance.TYZLinux联盟 TYZLinux联盟 #MaxKeepAliveRequests:在持久连接期间,所允许的最大请求数量。设为0表示不作限制TYZLinux联盟 TYZLinux联盟 建议设为较高的数,以提高性能TYZLinux联盟 TYZLinux联盟 MaxKeepAliveRequests 100TYZLinux联盟 TYZLinux联盟 #TYZLinux联盟 TYZLinux联盟 # KeepAliveTimeout: Number of seconds to wait for the next request from theTYZLinux联盟 TYZLinux联盟 # same client on the same connection.TYZLinux联盟 TYZLinux联盟 #KeepAliveTimeout:在同一个客户连接中,等待下一个请求的等待时间。TYZLinux联盟 TYZLinux联盟 KeepAliveTimeout 15TYZLinux联盟 TYZLinux联盟 ##TYZLinux联盟 TYZLinux联盟 ## Server-Pool Size Regulation (MPM specific)TYZLinux联盟 TYZLinux联盟 ## 常规Server-Pool服务器池的大小(每分钟M数)TYZLinux联盟 TYZLinux联盟 # WinNT MPM WinNT 的MPMTYZLinux联盟 TYZLinux联盟 # ThreadsPerChild: constant number of worker threads in the server processTYZLinux联盟 TYZLinux联盟 ThreadPerChild:服务器进程中工作的线程数量TYZLinux联盟 TYZLinux联盟 # MaxRequestsPerChild: maximum number of requests a server process servesTYZLinux联盟 TYZLinux联盟 每个服务进程的最大请求数TYZLinux联盟 TYZLinux联盟 <IfModule mpm_winnt.c>TYZLinux联盟 TYZLinux联盟 ThreadsPerChild 250TYZLinux联盟 TYZLinux联盟 MaxRequestsPerChild
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论 |
|
|
|
|
|