home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / apache / files / apache_1.3.29-win32-x86-no_src.exe / F45781_magic.default < prev    next >
Encoding:
Text File  |  2002-03-26  |  13.0 KB  |  360 lines

  1. he server and include mod_mime_magic
  2. # as part of the configuration), so it's enclosed in an <IfModule> container.
  3. # This means that the MIMEMagicFile directive will only be processed if the
  4. # module is part of the server.
  5. #
  6. <IfModule mod_mime_magic.c>
  7.     MIMEMagicFile conf/magic
  8. </IfModule>
  9.  
  10. #
  11. # HostnameLookups: Log the names of clients or just their IP addresses
  12. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  13. # The default is off because it'd be overall better for the net if people
  14. # had to knowingly turn this feature on, since enabling it means that
  15. # each client request will result in AT LEAST one lookup request to the
  16. # nameserver.
  17. #
  18. HostnameLookups Off
  19.  
  20. #
  21. # ErrorLog: The location of the error log file.
  22. # If you do not specify an ErrorLog directive within a <VirtualHost>
  23. # container, error messages relating to that virtual host will be
  24. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  25. # container, that host's errors will be logged there and not here.
  26. #
  27. ErrorLog logs/error.log
  28.  
  29. #
  30. # LogLevel: Control the number of messages logged to the error.log.
  31. # Possible values include: debug, info, notice, warn, error, crit,
  32. # alert, emerg.
  33. #
  34. LogLevel warn
  35.  
  36. #
  37. # The following directives define some format nicknames for use with
  38. # a CustomLog directive (see below).
  39. #
  40. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  41. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  42. LogFormat "%{Referer}i -> %U" referer
  43. LogFormat "%{User-agent}i" agent
  44.  
  45. #
  46. # The location and format of the access logfile (Common Logfile Format).
  47. # If you do not define any access logfiles within a <VirtualHost>
  48. # container, they will be logged here.  Contrariwise, if you *do*
  49. # define per-<VirtualHost> access logfiles, transactions will be
  50. # logged therein and *not* in this file.
  51. #
  52. CustomLog logs/access.log common
  53.  
  54. #
  55. # If you would like to have agent and referer logfiles, uncomment the
  56. # following directives.
  57. #
  58. #CustomLog logs/referer.log referer
  59. #CustomLog logs/agent.log agent
  60.  
  61. #
  62. # If you prefer a single logfile with access, agent, and referer information
  63. # (Combined Logfile Format) you can use the following directive.
  64. #
  65. #CustomLog logs/access.log combined
  66.  
  67. #
  68. # Optionally add a line containing the server version and virtual host
  69. # name to server-generated pages (error documents, FTP directory listings,
  70. # mod_status and mod_info output etc., but not CGI generated documents).
  71. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  72. # Set to one of:  On | Off | EMail
  73. #
  74. ServerSignature On
  75.  
  76. # Apache parses all CGI scripts for the shebang line by default.
  77. # This comment line, the first line of the script, consists of the symbols
  78. # pound (#) and exclamation (!) followed by the path of the program that 
  79. # can execute this specific script.  For a perl script, with perl.exe in
  80. # the C:\Program Files\Perl directory, the shebang line should be:
  81.  
  82.    #!c:/program files/perl/perl
  83.  
  84. # Note you _must_not_ indent the actual shebang line, and it must be the
  85. # first line of the file.  Of course, CGI processing must be enabled by 
  86. # the appropriate ScriptAlias or Options ExecCGI directives for the files 
  87. # or directory in question.
  88. #
  89. # However, Apache on Windows allows either the Unix behavior above, or can
  90. # use the Registry to match files by extention.  The command to execute 
  91. # a file of this type is retrieved from the registry by the same method as 
  92. # the Windows Explorer would use to handle double-clicking on a file.
  93. # These script actions can be configured from the Windows Explorer View menu, 
  94. # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
  95. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  96. # perform the 'Open' Action, and failing that it will try the shebang line.
  97. # This behavior is subject to change in Apache release 2.0.
  98. #
  99. # Each mechanism has it's own specific security weaknesses, from the means
  100. # to run a program you didn't intend the website owner to invoke, and the
  101. # best method is a matter of great debate.
  102. #
  103. # To enable the this Windows specific behavior (and therefore -disable- the
  104. # equivilant Unix behavior), uncomment the following directive:
  105. #
  106. #ScriptInterpreterSource registry
  107. #
  108. # The directive above can be placed in individual <Directory> blocks or the
  109. # .htaccess file, with either the 'registry' (Windows behavior) or 'script' 
  110. # (Unix behavior) option, and will override this server default option.
  111. #
  112.  
  113. #
  114. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  115. # Alias fakename realname
  116. #
  117. <IfModule mod_alias.c>
  118.  
  119.     #
  120.     # Note that if you include a trailing / on fakename then the server will
  121.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  122.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  123.     # realname must also be slash terminated, and if the fakename omits the 
  124.     # trailing slash, the realname must also omit it.
  125.     #
  126.     Alias /icons/ "@@ServerRoot@@/icons/"
  127.  
  128.     <Directory "@@ServerRoot@@/icons">
  129.         Options Indexes MultiViews
  130.         AllowOverride None
  131.         Order allow,deny
  132.         Allow from all
  133.     </Directory>
  134.  
  135.     # This Alias will project the on-line documentation tree under /manual/
  136.     # even if you change the DocumentRoot. Comment it if you don't want to 
  137.     # provide access to the on-line documentation.
  138.     #
  139.     Alias /manual/ "@@ServerRoot@@/htdocs/manual/"
  140.  
  141.     <Directory "@@ServerRoot@@/htdocs/manual">
  142.         Options Indexes FollowSymlinks MultiViews
  143.         AllowOverride None
  144.         Order allow,deny
  145.         Allow from all
  146.     </Directory>
  147.  
  148.     #
  149.     # ScriptAlias: This controls which directories contain server scripts.
  150.     # ScriptAliases are essentially the same as Aliases, except that
  151.     # documents in the realname directory are treated as applications and
  152.     # run by the server when requested rather than as documents sent to the client.
  153.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  154.     # Alias.
  155.     #
  156.     ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  157.  
  158.     #
  159.     # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
  160.     # CGI directory exists, if you have that configured.
  161.     #
  162.     <Directory "@@ServerRoot@@/cgi-bin">
  163.         AllowOverride None
  164.         Options None
  165.         Order allow,deny
  166.         Allow from all
  167.     </Directory>
  168.  
  169. </IfModule>
  170. # End of aliases.
  171.  
  172. #
  173. # Redirect allows you to tell clients about documents which used to exist in
  174. # your server's namespace, but do not anymore. This allows you to tell the
  175. # clients where to look for the relocated document.
  176. # Format: Redirect old-URI new-URL
  177. #
  178.  
  179. #
  180. # Directives controlling the display of server-generated directory listings.
  181. #
  182. <IfModule mod_autoindex.c>
  183.  
  184.     #
  185.     # FancyIndexing is whether you want fancy directory indexing or standard
  186.     #
  187.     # Note, add the option TrackModified to the IndexOptions default list only
  188.     # if all indexed directories reside on NTFS volumes.  The TrackModified flag
  189.     # will report the Last-Modified date to assist caches and proxies to properly
  190.     # track directory changes, but it does _not_ work on FAT volumes.
  191.     #
  192.     IndexOptions FancyIndexing
  193.  
  194.     #
  195.     # AddIcon* directives tell the server which icon to show for different
  196.     # files or filename extensions.  These are only displayed for
  197.     # FancyIndexed directories.
  198.     #
  199.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  200.  
  201.     AddIconByType (TXT,/icons/text.gif) text/*
  202.     AddIconByType (IMG,/icons/image2.gif) image/*
  203.     AddIconByType (SND,/icons/sound2.gif) audio/*
  204.     AddIconByType (VID,/icons/movie.gif) video/*
  205.  
  206.     AddIcon /icons/binary.gif .bin .exe
  207.     AddIcon /icons/binhex.gif .hqx
  208.     AddIcon /icons/tar.gif .tar
  209.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  210.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  211.     AddIcon /icons/a.gif .ps .ai .eps
  212.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  213.     AddIcon /icons/text.gif .txt
  214.     AddIcon /icons/c.gif .c
  215.     AddIcon /icons/p.gif .pl .py
  216.     AddIcon /icons/f.gif .for
  217.     AddIcon /icons/dvi.gif .dvi
  218.     AddIcon /icons/uuencoded.gif .uu
  219.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  220.     AddIcon /icons/tex.gif .tex
  221.     AddIcon /icons/bomb.gif core
  222.  
  223.     AddIcon /icons/back.gif ..
  224.     AddIcon /icons/hand.right.gif README
  225.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  226.     AddIcon /icons/blank.gif ^^BLANKICON^^
  227.  
  228.     #
  229.     # DefaultIcon is which icon to show for files which do not have an icon
  230.     # explicitly set.
  231.     #
  232.     DefaultIcon /icons/unknown.gif
  233.  
  234.     #
  235.     # AddDescription allows you to place a short description after a file in
  236.     # server-generated indexes.  These are only displayed for FancyIndexed
  237.     # directories.
  238.     # Format: AddDescription "description" filename
  239.     #
  240.     #AddDescription "GZIP compressed document" .gz
  241.     #AddDescription "tar archive" .tar
  242.     #AddDescription "GZIP compressed tar archive" .tgz
  243.  
  244.     #
  245.     # ReadmeName is the name of the README file the server will look for by
  246.     # default, and append to directory listings.
  247.     #
  248.     # HeaderName is the name of a file which should be prepended to
  249.     # directory indexes. 
  250.     #
  251.     ReadmeName README
  252.     HeaderName HEADER
  253.  
  254.     #
  255.     # IndexIgnore is a set of filenames which directory indexing should ignore
  256.     # and not include in the listing.  Shell-style wildcarding is permitted.
  257.     #
  258.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  259.  
  260. </IfModule>
  261. # End of indexing directives.
  262.  
  263. #
  264. # Document types.
  265. #
  266. <IfModule mod_mime.c>
  267.  
  268.     #
  269.     # AddType allows you to tweak mime.types without actually editing it, or to
  270.     # make certain files to be certain types.
  271.     #
  272.     AddType application/x-tar .tgz
  273.  
  274.     #
  275.     # AddEncoding allows you to have certain browsers uncompress
  276.     # information on the fly. Note: Not all browsers support this.
  277.     # Despite the name similarity, the following Add* directives have nothing
  278.     # to do with the FancyIndexing customization directives above.
  279.     #
  280.     AddEncoding x-compress .Z
  281.     AddEncoding x-gzip .gz .tgz
  282.     #
  283.     # If the AddEncoding directives above are commented-out, then you
  284.     # probably should define those extensions to indicate media types:
  285.     #
  286.     #AddType application/x-compress .Z
  287.     #AddType application/x-gzip .gz .tgz
  288.  
  289.     #
  290.     # AddLanguage allows you to specify the language of a document. You can
  291.     # then use content negotiation to give a browser a file in a language
  292.     # it can understand.
  293.     #
  294.     # Note 1: The suffix does not have to be the same as the language
  295.     # keyword --- those with documents in Polish (whose net-standard
  296.     # language code is pl) may wish to use "AddLanguage pl .po" to
  297.     # avoid the ambiguity with the common suffix for perl scripts.
  298.     #
  299.     # Note 2: The example entries below illustrate that in quite
  300.     # some cases the two character 'Language' abbreviation is not
  301.     # identical to the two character 'Country' code for its country,
  302.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  303.     #
  304.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  305.     # specifier. But there is 'work in progress' to fix this and get
  306.     # the reference data for rfc1766 cleaned up.
  307.     #
  308.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  309.     # French (fr) - German (de) - Greek-Modern (el)
  310.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
  311.     # Portugese (pt) - Luxembourgeois* (ltz)
  312.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
  313.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  314.     # Russian (ru)
  315.     #
  316.     AddLanguage da .dk
  317.     AddLanguage nl .nl
  318.     AddLanguage en .en
  319.     AddLanguage et .ee
  320.     AddLanguage fr .fr
  321.     AddLanguage de .de
  322.     AddLanguage el .el
  323.     AddLanguage he .he
  324.     AddCharset ISO-8859-8 .iso8859-8
  325.     AddLanguage it .it
  326.     AddLanguage ja .ja
  327.     AddCharset ISO-2022-JP .jis
  328.     AddLanguage kr .kr
  329.     AddCharset ISO-2022-KR .iso-kr
  330.     AddLanguage nn .nn
  331.     AddLanguage no .no
  332.     AddLanguage pl .po
  333.     AddCharset ISO-8859-2 .iso-pl
  334.     AddLanguage pt .pt
  335.     AddLanguage pt-br .pt-br
  336.     AddLanguage ltz .lu
  337.     AddLanguage ca .ca
  338.     AddLanguage es .es
  339.     AddLanguage sv .sv
  340.     AddLanguage cs .cz .cs
  341.     AddLanguage ru .ru
  342.     AddLanguage zh-TW .zh-tw
  343.     AddCharset Big5         .Big5    .big5
  344.     AddCharset WINDOWS-1251 .cp-1251
  345.     AddCharset CP866        .cp866
  346.     AddCharset ISO-8859-5   .iso-ru
  347.     AddCharset KOI8-R       .koi8-r
  348.     AddCharset UCS-2        .ucs2
  349.     AddCharset UCS-4        .ucs4
  350.     AddCharset UTF-8        .utf8
  351.  
  352.     # LanguagePriority allows you to give precedence to some languages
  353.     # in case of a tie during content negotiation.
  354.     #
  355.     # Just list the languages in decreasing order of preference. We have
  356.     # more or less alphabetized them here. You probably want to change this.
  357.     #
  358.     <IfModule mod_negotiation.c>
  359.         LanguagePriority en da nl et fr de el it ja kr no pl p