home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Online / Apache / conf / httpd.conf.default < prev    next >
Text File  |  2000-01-27  |  30KB  |  890 lines

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