home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / share / os2 / varios / apache / httpd.con < prev    next >
Encoding:
Text File  |  1996-06-07  |  5.5 KB  |  169 lines

  1. # This is the main server configuration file. See URL http://www.apache.org/
  2. # for instructions.
  3.  
  4. # Do NOT simply read the instructions in here without understanding
  5. # what they do, if you are unsure consult the online docs. You have been
  6. # warned.  
  7.  
  8. # Originally by Rob McCool
  9.  
  10. # ServerType is either inetd, or standalone.
  11.  
  12. ServerType standalone
  13.  
  14. # If you are running from inetd, go to "ServerAdmin".
  15.  
  16. # Port: The port the standalone listens to. For ports < 1023, you will
  17. # need httpd to be run as root initially.
  18.  
  19. Port 80
  20.  
  21. # HostnameLookups: Log the names of clients or just their IP numbers
  22. #   e.g.   www.apache.org (on) or 204.62.129.132 (off)
  23. HostnameLookups on
  24.  
  25. # If you wish httpd to run as a different user or group, you must run
  26. # httpd as root initially and it will switch.  
  27.  
  28. # User/Group: The name (or #number) of the user/group to run httpd as.
  29. #  On SCO (ODT 3) use User nouser and Group nogroup
  30. User nobody
  31. Group #-1
  32.  
  33. # ServerAdmin: Your address, where problems with the server should be
  34. # e-mailed.
  35.  
  36. ServerAdmin you@your.address
  37.  
  38. # ServerRoot: The directory the server's config, error, and log files
  39. # are kept in
  40.  
  41. ServerRoot /usr/local/etc/httpd
  42.  
  43. # BindAddress: You can support virtual hosts with this option. This option
  44. # is used to tell the server which IP address to listen to. It can either
  45. # contain "*", an IP address, or a fully qualified Internet domain name.
  46. # See also the VirtualHost directive.
  47.  
  48. #BindAddress *
  49.  
  50. # ErrorLog: The location of the error log file. If this does not start
  51. # with /, ServerRoot is prepended to it.
  52.  
  53. ErrorLog logs/error_log
  54.  
  55. # TransferLog: The location of the transfer log file. If this does not
  56. # start with /, ServerRoot is prepended to it.
  57.  
  58. TransferLog logs/access_log
  59.  
  60. # PidFile: The file the server should log its pid to
  61. PidFile logs/httpd.pid
  62.  
  63. # ScoreBoardFile: File used to store internal server process information
  64. ScoreBoardFile logs/apache_status
  65.  
  66. # ServerName allows you to set a host name which is sent back to clients for
  67. # your server if it's different than the one the program would get (i.e. use
  68. # "www" instead of the host's real name).
  69. #
  70. # Note: You cannot just invent host names and hope they work. The name you 
  71. # define here must be a valid DNS name for your host. If you don't understand
  72. # this, ask your network administrator.
  73.  
  74. #ServerName new.host.name
  75.  
  76. # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
  77. # document that was negotiated on the basis of content. This asks proxy
  78. # servers not to cache the document. Uncommenting the following line disables
  79. # this behavior, and proxies will be allowed to cache the documents.
  80.  
  81. #CacheNegotiatedDocs
  82.  
  83. # Timeout: The number of seconds before receives and sends time out
  84. #  n.b. the compiled default is 1200 (20 minutes !)
  85.  
  86. Timeout 400
  87.  
  88. # KeepAlive: The number of Keep-Alive persistent requests to accept
  89. # per connection. Set to 0 to deactivate Keep-Alive support
  90.  
  91. KeepAlive 5
  92.  
  93. # KeepAliveTimeout: Number of seconds to wait for the next request
  94.  
  95. KeepAliveTimeout 15
  96.  
  97. # Server-pool size regulation.  Rather than making you guess how many
  98. # server processes you need, Apache dynamically adapts to the load it
  99. # sees --- that is, it tries to maintain enough server processes to
  100. # handle the current load, plus a few spare servers to handle transient
  101. # load spikes (e.g., multiple simultaneous requests from a single
  102. # Netscape browser).
  103.  
  104. # It does this by periodically checking how many servers are waiting
  105. # for a request.  If there are fewer than MinSpareServers, it creates
  106. # a new spare.  If there are more than MaxSpareServers, some of the
  107. # spares die off.  These values are probably OK for most sites ---
  108.  
  109. MinSpareServers 5
  110. MaxSpareServers 10
  111.  
  112. # Number of servers to start --- should be a reasonable ballpark figure.
  113.  
  114. StartServers 5
  115.  
  116. # Limit on total number of servers running, i.e., limit on the number
  117. # of clients who can simultaneously connect --- if this limit is ever
  118. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  119. # It is intended mainly as a brake to keep a runaway server from taking
  120. # Unix with it as it spirals down...
  121.  
  122. MaxClients 150
  123.  
  124. # MaxRequestsPerChild: the number of requests each child process is
  125. #  allowed to process before the child dies.
  126. #  The child will exit so as to avoid problems after prolonged use when
  127. #  Apache (and maybe the libraries it uses) leak.  On most systems, this
  128. #  isn't really needed, but a few (such as Solaris) do have notable leaks
  129. #  in the libraries.
  130.  
  131. MaxRequestsPerChild 30
  132.  
  133. # Proxy Server directives. Uncomment the following line to
  134. # enable the proxy server:
  135.  
  136. #ProxyRequests On
  137.  
  138. # To enable the cache as well, edit and uncomment the following lines:
  139.  
  140. #CacheRoot /usr/local/etc/httpd/proxy
  141. #CacheSize 5
  142. #CacheGcInterval 4
  143. #CacheMaxExpire 24
  144. #CacheLastModifiedFactor 0.1
  145. #CacheDefaultExpire 1
  146. #NoCache adomain.com anotherdomain.edu joes.garage.com
  147.  
  148. # Listen: Allows you to bind Apache to specific IP addresses and/or
  149. # ports, in addition to the default. See also the VirtualHost command
  150.  
  151. #Listen 3000
  152. #Listen 12.34.56.78:80
  153.  
  154. # VirtualHost: Allows the daemon to respond to requests for more than one
  155. # server address, if your server machine is configured to accept IP packets
  156. # for multiple addresses. This can be accomplished with the ifconfig 
  157. # alias flag, or through kernel patches like VIF.
  158.  
  159. # Any httpd.conf or srm.conf directive may go into a VirtualHost command.
  160. # See alto the BindAddress entry.
  161.  
  162. #<VirtualHost host.foo.com>
  163. #ServerAdmin webmaster@host.foo.com
  164. #DocumentRoot /www/docs/host.foo.com
  165. #ServerName host.foo.com
  166. #ErrorLog logs/host.foo.com-error_log
  167. #TransferLog logs/host.foo.com-access_log
  168. #</VirtualHost>
  169.