home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / apach134.arj / APACH134.ZIP / conf / httpd.conf-dist < prev    next >
Encoding:
Text File  |  1998-12-12  |  27.4 KB  |  845 lines

  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://www.apache.org/docs/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned.  
  12. #
  13. # After this file is processed, the server will look for and process
  14. # @@ServerRoot@@/conf/srm.conf and then @@ServerRoot@@/conf/access.conf
  15. # unless you have overridden these with ResourceConfig and/or
  16. # AccessConfig directives here.
  17. #
  18. # The configuration directives are grouped into three basic sections:
  19. #  1. Directives that control the operation of the Apache server process as a
  20. #     whole (the 'global environment').
  21. #  2. Directives that define the parameters of the 'main' or 'default' server,
  22. #     which responds to requests that aren't handled by a virtual host.
  23. #     These directives also provide default values for the settings
  24. #     of all virtual hosts.
  25. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  26. #     different IP addresses or hostnames and have them handled by the
  27. #     same Apache server process.
  28. #
  29. # Configuration and logfile names: If the filenames you specify for many
  30. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  31. # server will use that explicit path.  If the filenames do *not* begin
  32. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  33. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  34. # server as "/usr/local/apache/logs/foo.log".
  35. #
  36.  
  37. ### Section 1: Global Environment
  38. #
  39. # The directives in this section affect the overall operation of Apache,
  40. # such as the number of concurrent requests it can handle or where it
  41. # can find its configuration files.
  42. #
  43.  
  44. #
  45. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  46. # Unix platforms.
  47. #
  48. ServerType standalone
  49.  
  50. #
  51. # ServerRoot: The top of the directory tree under which the server's
  52. # configuration, error, and log files are kept.
  53. #
  54. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  55. # mounted filesystem then please read the LockFile documentation
  56. # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
  57. # you will save yourself a lot of trouble.
  58. #
  59. # Do NOT add a slash at the end of the directory path.
  60. #
  61. ServerRoot "@@ServerRoot@@"
  62.  
  63. #
  64. # The LockFile directive sets the path to the lockfile used when Apache
  65. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  66. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  67. # its default value. The main reason for changing it is if the logs
  68. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  69. # DISK. The PID of the main server process is automatically appended to
  70. # the filename. 
  71. #
  72. #LockFile logs/accept.lock
  73.  
  74. #
  75. # PidFile: The file in which the server should record its process
  76. # identification number when it starts.
  77. #
  78. PidFile logs/httpd.pid
  79.  
  80. #
  81. # ScoreBoardFile: File used to store internal server process information.
  82. # Not all architectures require this.  But if yours does (you'll know because
  83. # this file will be  created when you run Apache) then you *must* ensure that
  84. # no two invocations of Apache share the same scoreboard file.
  85. #
  86. ScoreBoardFile logs/apache_runtime_status
  87.  
  88. #
  89. # In the standard configuration, the server will process httpd.conf,
  90. # srm.conf, and access.conf in that order.  The latter two files are
  91. # now distributed empty, as it is recommended that all directives
  92. # be kept in a single file for simplicity.  The commented-out values
  93. # below are the built-in defaults.  You can have the server ignore
  94. # these files altogether by using "/dev/null" (for Unix) or
  95. # "nul" (for Win32) for the arguments to the directives.
  96. #
  97. #ResourceConfig conf/srm.conf
  98. #AccessConfig conf/access.conf
  99.  
  100. #
  101. # Timeout: The number of seconds before receives and sends time out.
  102. #
  103. Timeout 300
  104.  
  105. #
  106. # KeepAlive: Whether or not to allow persistent connections (more than
  107. # one request per connection). Set to "Off" to deactivate.
  108. #
  109. KeepAlive On
  110.  
  111. #
  112. # MaxKeepAliveRequests: The maximum number of requests to allow
  113. # during a persistent connection. Set to 0 to allow an unlimited amount.
  114. # We recommend you leave this number high, for maximum performance.
  115. #
  116. MaxKeepAliveRequests 100
  117.  
  118. #
  119. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  120. # same client on the same connection.
  121. #
  122. KeepAliveTimeout 15
  123.  
  124. #
  125. # Server-pool size regulation.  Rather than making you guess how many
  126. # server processes you need, Apache dynamically adapts to the load it
  127. # sees --- that is, it tries to maintain enough server processes to
  128. # handle the current load, plus a few spare servers to handle transient
  129. # load spikes (e.g., multiple simultaneous requests from a single
  130. # Netscape browser).
  131. #
  132. # It does this by periodically checking how many servers are waiting
  133. # for a request.  If there are fewer than MinSpareServers, it creates
  134. # a new spare.  If there are more than MaxSpareServers, some of the
  135. # spares die off.  The default values in httpd.conf-dist are probably OK
  136. # for most sites.
  137. #
  138. MinSpareServers 5
  139. MaxSpareServers 10
  140.  
  141. #
  142. # Number of servers to start initially --- should be a reasonable ballpark
  143. # figure.
  144. #
  145. StartServers 5
  146.  
  147. #
  148. # Limit on total number of servers running, i.e., limit on the number
  149. # of clients who can simultaneously connect --- if this limit is ever
  150. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  151. # It is intended mainly as a brake to keep a runaway server from taking
  152. # the system with it as it spirals down...
  153. #
  154. MaxClients 150
  155.  
  156. #
  157. # MaxRequestsPerChild: the number of requests each child process is
  158. # allowed to process before the child dies.  The child will exit so
  159. # as to avoid problems after prolonged use when Apache (and maybe the
  160. # libraries it uses) leak memory or other resources.  On most systems, this
  161. # isn't really needed, but a few (such as Solaris) do have notable leaks
  162. # in the libraries.
  163. #
  164. MaxRequestsPerChild 30
  165.  
  166. #
  167. # Listen: Allows you to bind Apache to specific IP addresses and/or
  168. # ports, in addition to the default. See also the <VirtualHost>
  169. # directive.
  170. #
  171. #Listen 3000
  172. #Listen 12.34.56.78:80
  173.  
  174. #
  175. # BindAddress: You can support virtual hosts with this option. This directive
  176. # is used to tell the server which IP address to listen to. It can either
  177. # contain "*", an IP address, or a fully qualified Internet domain name.
  178. # See also the <VirtualHost> and Listen directives.
  179. #
  180. #BindAddress *
  181.  
  182. #
  183. # Dynamic Shared Object (DSO) Support
  184. #
  185. # To be able to use the functionality of a module which was built as a DSO you
  186. # have to place corresponding `LoadModule' lines at this location so the
  187. # directives contained in it are actually available _before_ they are used.
  188. # Please read the file README.DSO in the Apache 1.3 distribution for more
  189. # details about the DSO mechanism and run `httpd -l' for the list of already
  190. # built-in (statically linked and thus always available) modules in your httpd
  191. # binary.
  192. #
  193. # Note: The order is which modules are loaded is important.  Don't change
  194. # the order below without expert advice.
  195. #
  196. # Example:
  197. # LoadModule foo_module libexec/mod_foo.so
  198.  
  199. #
  200. # ExtendedStatus controls whether Apache will generate "full" status
  201. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  202. # Off) when the "server-status" handler is called. The default is Off.
  203. #
  204. #ExtendedStatus On
  205.  
  206. ### Section 2: 'Main' server configuration
  207. #
  208. # The directives in this section set up the values used by the 'main'
  209. # server, which responds to any requests that aren't handled by a
  210. # <VirtualHost> definition.  These values also provide defaults for
  211. # any <VirtualHost> containers you may define later in the file.
  212. #
  213. # All of these directives may appear inside <VirtualHost> containers,
  214. # in which case these default settings will be overridden for the
  215. # virtual host being defined.
  216. #
  217.  
  218. #
  219. # If your ServerType directive (set earlier in the 'Global Environment'
  220. # section) is set to "inetd", the next few directives don't have any
  221. # effect since their settings are defined by the inetd configuration.
  222. # Skip ahead to the ServerAdmin directive.
  223. #
  224.  
  225. #
  226. # Port: The port to which the standalone server listens. For
  227. # ports < 1023, you will need httpd to be run as root initially.
  228. #
  229. Port 80
  230.  
  231. #
  232. # If you wish httpd to run as a different user or group, you must run
  233. # httpd as root initially and it will switch.  
  234. #
  235. # User/Group: The name (or #number) of the user/group to run httpd as.
  236. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  237. #  . On HPUX you may not be able to use shared memory as nobody, and the
  238. #    suggested workaround is to create a user www and use that user.
  239. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  240. #  when the value of (unsigned)Group is above 60000; 
  241. #  don't use Group #-1 on these systems!
  242. #
  243. User nobody
  244. Group #-1
  245.  
  246. #
  247. # ServerAdmin: Your address, where problems with the server should be
  248. # e-mailed.  This address appears on some server-generated pages, such
  249. # as error documents.
  250. #
  251. ServerAdmin you@your.address
  252.  
  253. #
  254. # ServerName allows you to set a host name which is sent back to clients for
  255. # your server if it's different than the one the program would get (i.e., use
  256. # "www" instead of the host's real name).
  257. #
  258. # Note: You cannot just invent host names and hope they work. The name you 
  259. # define here must be a valid DNS name for your host. If you don't understand
  260. # this, ask your network administrator.
  261. # If your host doesn't have a registered DNS name, enter its IP address here.
  262. # You will have to access it by its address (e.g., http://123.45.67.89/)
  263. # anyway, and this will make redirections work in a sensible way.
  264. #
  265. #ServerName new.host.name
  266.  
  267. #
  268. # DocumentRoot: The directory out of which you will serve your
  269. # documents. By default, all requests are taken from this directory, but
  270. # symbolic links and aliases may be used to point to other locations.
  271. #
  272. DocumentRoot "@@ServerRoot@@/htdocs"
  273.  
  274. #
  275. # Each directory to which Apache has access, can be configured with respect
  276. # to which services and features are allowed and/or disabled in that
  277. # directory (and its subdirectories). 
  278. #
  279. # First, we configure the "default" to be a very restrictive set of 
  280. # permissions.  
  281. #
  282. <Directory />
  283.     Options FollowSymLinks
  284.     AllowOverride None
  285. </Directory>
  286.  
  287. #
  288. # Note that from this point forward you must specifically allow
  289. # particular features to be enabled - so if something's not working as
  290. # you might expect, make sure that you have specifically enabled it
  291. # below.
  292. #
  293.  
  294. #
  295. # This should be changed to whatever you set DocumentRoot to.
  296. #
  297. <Directory "@@ServerRoot@@/htdocs">
  298.  
  299. #
  300. # This may also be "None", "All", or any combination of "Indexes",
  301. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  302. #
  303. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  304. # doesn't give it to you.
  305. #
  306.     Options Indexes FollowSymLinks
  307.  
  308. #
  309. # This controls which options the .htaccess files in directories can
  310. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  311. # "AuthConfig", and "Limit"
  312. #
  313.     AllowOverride None
  314.  
  315. #
  316. # Controls who can get stuff from this server.
  317. #
  318.     Order allow,deny
  319.     Allow from all
  320. </Directory>
  321.  
  322. #
  323. # UserDir: The name of the directory which is appended onto a user's home
  324. # directory if a ~user request is received.
  325. #
  326. UserDir public_html
  327.  
  328. #
  329. # Control access to UserDir directories.  The following is an example
  330. # for a site where these directories are restricted to read-only.
  331. #
  332. #<Directory /*/public_html>
  333. #    AllowOverride FileInfo AuthConfig Limit
  334. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  335. #    <Limit GET POST OPTIONS PROPFIND>
  336. #        Order allow,deny
  337. #        Allow from all
  338. #    </Limit>
  339. #    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
  340. #        Order deny,allow
  341. #        Deny from all
  342. #    </Limit>
  343. #</Directory>
  344.  
  345. #
  346. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  347. # directory index.  Separate multiple entries with spaces.
  348. #
  349. DirectoryIndex index.html
  350.  
  351. #
  352. # AccessFileName: The name of the file to look for in each directory
  353. # for access control information.
  354. #
  355. AccessFileName .htaccess
  356.  
  357. #
  358. # The following lines prevent .htaccess files from being viewed by
  359. # Web clients.  Since .htaccess files often contain authorization
  360. # information, access is disallowed for security reasons.  Comment
  361. # these lines out if you want Web visitors to see the contents of
  362. # .htaccess files.  If you change the AccessFileName directive above,
  363. # be sure to make the corresponding changes here.
  364. #
  365. <Files .htaccess>
  366.     Order allow,deny
  367.     Deny from all
  368. </Files>
  369.  
  370. #
  371. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  372. # document that was negotiated on the basis of content. This asks proxy
  373. # servers not to cache the document. Uncommenting the following line disables
  374. # this behavior, and proxies will be allowed to cache the documents.
  375. #
  376. #CacheNegotiatedDocs
  377.  
  378. #
  379. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  380. # Apache needs to construct a self-referencing URL (a URL that refers back
  381. # to the server the response is coming from) it will use ServerName and
  382. # Port to form a "canonical" name.  With this setting off, Apache will
  383. # use the hostname:port that the client supplied, when possible.  This
  384. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  385. #
  386. UseCanonicalName On
  387.  
  388. #
  389. # TypesConfig describes where the mime.types file (or equivalent) is
  390. # to be found.
  391. #
  392. TypesConfig conf/mime.types
  393.  
  394. #
  395. # DefaultType is the default MIME type the server will use for a document
  396. # if it cannot otherwise determine one, such as from filename extensions.
  397. # If your server contains mostly text or HTML documents, "text/plain" is
  398. # a good value.  If most of your content is binary, such as applications
  399. # or images, you may want to use "application/octet-stream" instead to
  400. # keep browsers from trying to display binary files as though they are
  401. # text.
  402. #
  403. DefaultType text/plain
  404.  
  405. #
  406. # The mod_mime_magic module allows the server to use various hints from the
  407. # contents of the file itself to determine its type.  The MIMEMagicFile
  408. # directive tells the module where the hint definitions are located.
  409. # mod_mime_magic is not part of the default server (you have to add
  410. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  411. # Environment' section], or recompile the server and include mod_mime_magic
  412. # as part of the configuration), so it's enclosed in an <IfModule> container.
  413. # This means that the MIMEMagicFile directive will only be processed if the
  414. # module is part of the server.
  415. #
  416. <IfModule mod_mime_magic.c>
  417.     MIMEMagicFile conf/magic
  418. </IfModule>
  419.  
  420. #
  421. # HostnameLookups: Log the names of clients or just their IP addresses
  422. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  423. # The default is off because it'd be overall better for the net if people
  424. # had to knowingly turn this feature on, since enabling it means that
  425. # each client request will result in AT LEAST one lookup request to the
  426. # nameserver.
  427. #
  428. HostnameLookups Off
  429.  
  430. #
  431. # ErrorLog: The location of the error log file.
  432. # If you do not specify an ErrorLog directive within a <VirtualHost>
  433. # container, error messages relating to that virtual host will be
  434. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  435. # container, that host's errors will be logged there and not here.
  436. #
  437. ErrorLog logs/error_log
  438.  
  439. #
  440. # LogLevel: Control the number of messages logged to the error_log.
  441. # Possible values include: debug, info, notice, warn, error, crit,
  442. # alert, emerg.
  443. #
  444. LogLevel warn
  445.  
  446. #
  447. # The following directives define some format nicknames for use with
  448. # a CustomLog directive (see below).
  449. #
  450. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  451. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  452. LogFormat "%{Referer}i -> %U" referer
  453. LogFormat "%{User-agent}i" agent
  454.  
  455. #
  456. # The location and format of the access logfile (Common Logfile Format).
  457. # If you do not define any access logfiles within a <VirtualHost>
  458. # container, they will be logged here.  Contrariwise, if you *do*
  459. # define per-<VirtualHost> access logfiles, transactions will be
  460. # logged therein and *not* in this file.
  461. #
  462. CustomLog logs/access_log common
  463.  
  464. #
  465. # If you would like to have agent and referer logfiles, uncomment the
  466. # following directives.
  467. #
  468. #CustomLog logs/referer_log referer
  469. #CustomLog logs/agent_log agent
  470.  
  471. #
  472. # If you prefer a single logfile with access, agent, and referer information
  473. # (Combined Logfile Format) you can use the following directive.
  474. #
  475. #CustomLog logs/access_log combined
  476.  
  477. #
  478. # Optionally add a line containing the server version and virtual host
  479. # name to server-generated pages (error documents, FTP directory listings,
  480. # mod_status and mod_info output etc., but not CGI generated documents).
  481. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  482. # Set to one of:  On | Off | EMail
  483. #
  484. ServerSignature On
  485.  
  486. #
  487. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  488. # Alias fakename realname
  489. #
  490. # Note that if you include a trailing / on fakename then the server will
  491. # require it to be present in the URL.  So "/icons" isn't aliased in this
  492. # example, only "/icons/"..
  493. #
  494. Alias /icons/ "@@ServerRoot@@/icons/"
  495.  
  496. <Directory "@@ServerRoot@@/icons">
  497.     Options Indexes MultiViews
  498.     AllowOverride None
  499.     Order allow,deny
  500.     Allow from all
  501. </Directory>
  502.  
  503. #
  504. # ScriptAlias: This controls which directories contain server scripts.
  505. # ScriptAliases are essentially the same as Aliases, except that
  506. # documents in the realname directory are treated as applications and
  507. # run by the server when requested rather than as documents sent to the client.
  508. # The same rules about trailing "/" apply to ScriptAlias directives as to
  509. # Alias.
  510. #
  511. ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  512.  
  513. #
  514. # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
  515. # CGI directory exists, if you have that configured.
  516. #
  517. <Directory "@@ServerRoot@@/cgi-bin">
  518.     AllowOverride None
  519.     Options None
  520.     Order allow,deny
  521.     Allow from all
  522. </Directory>
  523.  
  524. #
  525. # Redirect allows you to tell clients about documents which used to exist in
  526. # your server's namespace, but do not anymore. This allows you to tell the
  527. # clients where to look for the relocated document.
  528. # Format: Redirect old-URI new-URL
  529. #
  530.  
  531. #
  532. # Directives controlling the display of server-generated directory listings.
  533. #
  534.  
  535. #
  536. # FancyIndexing is whether you want fancy directory indexing or standard
  537. #
  538. IndexOptions FancyIndexing
  539.  
  540. #
  541. # AddIcon* directives tell the server which icon to show for different
  542. # files or filename extensions.  These are only displayed for
  543. # FancyIndexed directories.
  544. #
  545. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  546.  
  547. AddIconByType (TXT,/icons/text.gif) text/*
  548. AddIconByType (IMG,/icons/image2.gif) image/*
  549. AddIconByType (SND,/icons/sound2.gif) audio/*
  550. AddIconByType (VID,/icons/movie.gif) video/*
  551.  
  552. AddIcon /icons/binary.gif .bin .exe
  553. AddIcon /icons/binhex.gif .hqx
  554. AddIcon /icons/tar.gif .tar
  555. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  556. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  557. AddIcon /icons/a.gif .ps .ai .eps
  558. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  559. AddIcon /icons/text.gif .txt
  560. AddIcon /icons/c.gif .c
  561. AddIcon /icons/p.gif .pl .py
  562. AddIcon /icons/f.gif .for
  563. AddIcon /icons/dvi.gif .dvi
  564. AddIcon /icons/uuencoded.gif .uu
  565. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  566. AddIcon /icons/tex.gif .tex
  567. AddIcon /icons/bomb.gif core
  568.  
  569. AddIcon /icons/back.gif ..
  570. AddIcon /icons/hand.right.gif README
  571. AddIcon /icons/folder.gif ^^DIRECTORY^^
  572. AddIcon /icons/blank.gif ^^BLANKICON^^
  573.  
  574. #
  575. # DefaultIcon is which icon to show for files which do not have an icon
  576. # explicitly set.
  577. #
  578. DefaultIcon /icons/unknown.gif
  579.  
  580. #
  581. # AddDescription allows you to place a short description after a file in
  582. # server-generated indexes.  These are only displayed for FancyIndexed
  583. # directories.
  584. # Format: AddDescription "description" filename
  585. #
  586. #AddDescription "GZIP compressed document" .gz
  587. #AddDescription "tar archive" .tar
  588. #AddDescription "GZIP compressed tar archive" .tgz
  589.  
  590. #
  591. # ReadmeName is the name of the README file the server will look for by
  592. # default, and append to directory listings.
  593. #
  594. # HeaderName is the name of a file which should be prepended to
  595. # directory indexes. 
  596. #
  597. # The server will first look for name.html and include it if found.
  598. # If name.html doesn't exist, the server will then look for name.txt
  599. # and include it as plaintext if found.
  600. #
  601. ReadmeName README
  602. HeaderName HEADER
  603.  
  604. #
  605. # IndexIgnore is a set of filenames which directory indexing should ignore
  606. # and not include in the listing.  Shell-style wildcarding is permitted.
  607. #
  608. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  609.  
  610. #
  611. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  612. # information on the fly. Note: Not all browsers support this.
  613. # Despite the name similarity, the following Add* directives have nothing
  614. # to do with the FancyIndexing customization directives above.
  615. #
  616. AddEncoding x-compress Z
  617. AddEncoding x-gzip gz
  618.  
  619. #
  620. # AddLanguage allows you to specify the language of a document. You can
  621. # then use content negotiation to give a browser a file in a language
  622. # it can understand.  Note that the suffix does not have to be the same
  623. # as the language keyword --- those with documents in Polish (whose
  624. # net-standard language code is pl) may wish to use "AddLanguage pl .po" 
  625. # to avoid the ambiguity with the common suffix for perl scripts.
  626. #
  627. AddLanguage en .en
  628. AddLanguage fr .fr
  629. AddLanguage de .de
  630. AddLanguage da .da
  631. AddLanguage el .el
  632. AddLanguage it .it
  633.  
  634. #
  635. # LanguagePriority allows you to give precedence to some languages
  636. # in case of a tie during content negotiation.
  637. # Just list the languages in decreasing order of preference.
  638. #
  639. LanguagePriority en fr de
  640.  
  641. #
  642. # AddType allows you to tweak mime.types without actually editing it, or to
  643. # make certain files to be certain types.
  644. #
  645. # For example, the PHP3 module (not part of the Apache distribution)
  646. # will typically use:
  647. #
  648. #AddType application/x-httpd-php3 .phtml
  649. #AddType application/x-httpd-php3-source .phps
  650.  
  651. #
  652. # AddHandler allows you to map certain file extensions to "handlers",
  653. # actions unrelated to filetype. These can be either built into the server
  654. # or added with the Action command (see below)
  655. #
  656. # If you want to use server side includes, or CGI outside
  657. # ScriptAliased directories, uncomment the following lines.
  658. #
  659. # To use CGI scripts:
  660. #
  661. #AddHandler cgi-script .cgi
  662.  
  663. #
  664. # To use server-parsed HTML files
  665. #
  666. #AddType text/html .shtml
  667. #AddHandler server-parsed .shtml
  668.  
  669. #
  670. # Uncomment the following line to enable Apache's send-asis HTTP file
  671. # feature
  672. #
  673. #AddHandler send-as-is asis
  674.  
  675. #
  676. # If you wish to use server-parsed imagemap files, use
  677. #
  678. #AddHandler imap-file map
  679.  
  680. #
  681. # To enable type maps, you might want to use
  682. #
  683. #AddHandler type-map var
  684.  
  685. #
  686. # Action lets you define media types that will execute a script whenever
  687. # a matching file is called. This eliminates the need for repeated URL
  688. # pathnames for oft-used CGI file processors.
  689. # Format: Action media/type /cgi-script/location
  690. # Format: Action handler-name /cgi-script/location
  691. #
  692.  
  693. #
  694. # MetaDir: specifies the name of the directory in which Apache can find
  695. # meta information files. These files contain additional HTTP headers
  696. # to include when sending the document
  697. #
  698. #MetaDir .web
  699.  
  700. #
  701. # MetaSuffix: specifies the file name suffix for the file containing the
  702. # meta information.
  703. #
  704. #MetaSuffix .meta
  705.  
  706. #
  707. # Customizable error response (Apache style)
  708. #  these come in three flavors
  709. #
  710. #    1) plain text
  711. #ErrorDocument 500 "The server made a boo boo.
  712. #  n.b.  the (") marks it as text, it does not get output
  713. #
  714. #    2) local redirects
  715. #ErrorDocument 404 /missing.html
  716. #  to redirect to local URL /missing.html
  717. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  718. #  N.B.: You can redirect to a script or a document using server-side-includes.
  719. #
  720. #    3) external redirects
  721. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  722. #  N.B.: Many of the environment variables associated with the original
  723. #  request will *not* be available to such a script.
  724.  
  725. #
  726. # The following directives modify normal HTTP response behavior.
  727. # The first directive disables keepalive for Netscape 2.x and browsers that
  728. # spoof it. There are known problems with these browser implementations.
  729. # The second directive is for Microsoft Internet Explorer 4.0b2
  730. # which has a broken HTTP/1.1 implementation and does not properly
  731. # support keepalive when it is used on 301 or 302 (redirect) responses.
  732. #
  733. BrowserMatch "Mozilla/2" nokeepalive
  734. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  735.  
  736. #
  737. # The following directive disables HTTP/1.1 responses to browsers which
  738. # are in violation of the HTTP/1.0 spec by not being able to grok a
  739. # basic 1.1 response.
  740. #
  741. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  742. BrowserMatch "Java/1\.0" force-response-1.0
  743. BrowserMatch "JDK/1\.0" force-response-1.0
  744.  
  745. #
  746. # Allow server status reports, with the URL of http://servername/server-status
  747. # Change the ".your_domain.com" to match your domain to enable.
  748. #
  749. #<Location /server-status>
  750. #    SetHandler server-status
  751. #    Order deny,allow
  752. #    Deny from all
  753. #    Allow from .your_domain.com
  754. #</Location>
  755.  
  756. #
  757. # Allow remote server configuration reports, with the URL of
  758. #  http://servername/server-info (requires that mod_info.c be loaded).
  759. # Change the ".your_domain.com" to match your domain to enable.
  760. #
  761. #<Location /server-info>
  762. #    SetHandler server-info
  763. #    Order deny,allow
  764. #    Deny from all
  765. #    Allow from .your_domain.com
  766. #</Location>
  767.  
  768. #
  769. # There have been reports of people trying to abuse an old bug from pre-1.1
  770. # days.  This bug involved a CGI script distributed as a part of Apache.
  771. # By uncommenting these lines you can redirect these attacks to a logging 
  772. # script on phf.apache.org.  Or, you can record them yourself, using the script
  773. # support/phf_abuse_log.cgi.
  774. #
  775. #<Location /cgi-bin/phf*>
  776. #    Deny from all
  777. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  778. #</Location>
  779.  
  780. #
  781. # Proxy Server directives. Uncomment the following lines to
  782. # enable the proxy server:
  783. #
  784. #<IfModule mod_proxy.c>
  785. #ProxyRequests On
  786. #
  787. #<Directory proxy:*>
  788. #    Order deny,allow
  789. #    Deny from all
  790. #    Allow from .your_domain.com
  791. #</Directory>
  792.  
  793. #
  794. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  795. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  796. # Set to one of: Off | On | Full | Block
  797. #
  798. #ProxyVia On
  799.  
  800. #
  801. # To enable the cache as well, edit and uncomment the following lines:
  802. # (no cacheing without CacheRoot)
  803. #
  804. #CacheRoot "@@ServerRoot@@/proxy"
  805. #CacheSize 5
  806. #CacheGcInterval 4
  807. #CacheMaxExpire 24
  808. #CacheLastModifiedFactor 0.1
  809. #CacheDefaultExpire 1
  810. #NoCache a_domain.com another_domain.edu joes.garage_sale.com
  811.  
  812. #</IfModule>
  813. # End of proxy directives.
  814.  
  815. ### Section 3: Virtual Hosts
  816. #
  817. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  818. # machine you can setup VirtualHost containers for them.
  819. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  820. # for further details before you try to setup virtual hosts.
  821. # You may use the command line option '-S' to verify your virtual host
  822. # configuration.
  823.  
  824. #
  825. # If you want to use name-based virtual hosts you need to define at
  826. # least one IP address (and port number) for them.
  827. #
  828. #NameVirtualHost 12.34.56.78:80
  829. #NameVirtualHost 12.34.56.78
  830.  
  831. #
  832. # VirtualHost example:
  833. # Almost any Apache directive may go into a VirtualHost container.
  834. #
  835. #<VirtualHost ip.address.of.host.some_domain.com>
  836. #    ServerAdmin webmaster@host.some_domain.com
  837. #    DocumentRoot /www/docs/host.some_domain.com
  838. #    ServerName host.some_domain.com
  839. #    ErrorLog logs/host.some_domain.com-error_log
  840. #    CustomLog logs/host.some_domain.com-access_log common
  841. #</VirtualHost>
  842.  
  843. #<VirtualHost _default_:*>
  844. #</VirtualHost>
  845.