home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / Apache Configuration Editor.EXE / srm.conf-dist-win < prev    next >
Encoding:
Text File  |  1998-08-30  |  8.9 KB  |  259 lines

  1. # With this document, you define the name space that users see of your http
  2. # server.  This file also defines server settings which affect how requests are
  3. # serviced, and how results should be formatted. 
  4.  
  5. # See the tutorials at http://www.apache.org/ for
  6. # more information.
  7.  
  8. # Originally by Rob McCool; Adapted for Apache
  9.  
  10. # Note: Where filenames are specified, you must use forward slashes
  11. # instead of backslashes. e.g. "c:/apache" instead of "c:\apache". If
  12. # the drive letter is ommited, the drive where Apache.exe is located
  13. # will be assumed.
  14.  
  15. # DocumentRoot: The directory out of which you will serve your
  16. # documents. By default, all requests are taken from this directory, but
  17. # symbolic links and aliases may be used to point to other locations.
  18.  
  19. DocumentRoot "@@ServerRoot@@/htdocs"
  20.  
  21. # UserDir: The name of the directory which is appended onto a user's home
  22. # directory if a ~user request is recieved.
  23. #
  24. # Under Win32, we do not currently try to determine the home directory of
  25. # a Windows login, so one of the forms such as the below needs to be
  26. # used.  See the manual for details.
  27. #
  28. #UserDir "@@ServerRoot@@/users/"
  29.  
  30. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  31. # directory index.  Separate multiple entries with spaces.
  32.  
  33. DirectoryIndex index.html
  34.  
  35. # FancyIndexing is whether you want fancy directory indexing or standard
  36.  
  37. FancyIndexing on
  38.  
  39. # AddIcon tells the server which icon to show for different files or filename
  40. # extensions
  41.  
  42. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  43.  
  44. AddIconByType (TXT,/icons/text.gif) text/*
  45. AddIconByType (IMG,/icons/image2.gif) image/*
  46. AddIconByType (SND,/icons/sound2.gif) audio/*
  47. AddIconByType (VID,/icons/movie.gif) video/*
  48.  
  49. AddIcon /icons/binary.gif .bin .exe
  50. AddIcon /icons/binhex.gif .hqx
  51. AddIcon /icons/tar.gif .tar
  52. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  53. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  54. AddIcon /icons/a.gif .ps .ai .eps
  55. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  56. AddIcon /icons/text.gif .txt
  57. AddIcon /icons/c.gif .c
  58. AddIcon /icons/p.gif .pl .py
  59. AddIcon /icons/f.gif .for
  60. AddIcon /icons/dvi.gif .dvi
  61. AddIcon /icons/uuencoded.gif .uu
  62. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  63. AddIcon /icons/tex.gif .tex
  64. AddIcon /icons/bomb.gif core
  65.  
  66. AddIcon /icons/back.gif ..
  67. AddIcon /icons/hand.right.gif README
  68. AddIcon /icons/folder.gif ^^DIRECTORY^^
  69. AddIcon /icons/blank.gif ^^BLANKICON^^
  70.  
  71. # DefaultIcon is which icon to show for files which do not have an icon
  72. # explicitly set.
  73.  
  74. DefaultIcon /icons/unknown.gif
  75.  
  76. # AddDescription allows you to place a short description after a file in
  77. # server-generated indexes.
  78. # Format: AddDescription "description" filename
  79.  
  80. # ReadmeName is the name of the README file the server will look for by
  81. # default. Format: ReadmeName name
  82. #
  83. # The server will first look for name.html, include it if found, and it will
  84. # then look for name and include it as plaintext if found.
  85. #
  86. # HeaderName is the name of a file which should be prepended to
  87. # directory indexes. 
  88.  
  89. ReadmeName README
  90. HeaderName HEADER
  91.  
  92. # IndexIgnore is a set of filenames which directory indexing should ignore
  93. # Format: IndexIgnore name1 name2...
  94.  
  95. IndexIgnore .??* *~ *# HEADER* README* RCS
  96.  
  97. # AccessFileName: The name of the file to look for in each directory
  98. # for access control information.
  99.  
  100. AccessFileName .htaccess
  101.  
  102. # The following lines prevent .htaccess files from being viewed by
  103. # Web clients.  Since .htaccess files often contain authorization
  104. # information, access is disallowed for security reasons.  Comment
  105. # these lines out if you want Web visitors to see the contents of
  106. # .htaccess files.  If you change the AccessFileName directive above,
  107. # be sure to make the corresponding changes here.
  108.  
  109. <Files .htaccess>
  110. order allow,deny
  111. deny from all
  112. </Files>
  113.  
  114. # TypesConfig describes where the mime.types file (or equivalent) is
  115. # to be found.
  116.  
  117. TypesConfig conf/mime.types
  118.  
  119. # DefaultType is the default MIME type for documents which the server
  120. # cannot find the type of from filename extensions.
  121.  
  122. DefaultType text/plain
  123.  
  124. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  125. # information on the fly. Note: Not all browsers support this.
  126.  
  127. AddEncoding x-compress Z
  128. AddEncoding x-gzip gz
  129.  
  130. # AddLanguage allows you to specify the language of a document. You can
  131. # then use content negotiation to give a browser a file in a language
  132. # it can understand.  Note that the suffix does not have to be the same
  133. # as the language keyword --- those with documents in Polish (whose
  134. # net-standard language code is pl) may wish to use "AddLanguage pl .po" 
  135. # to avoid the ambiguity with the common suffix for perl scripts.
  136.  
  137. AddLanguage en .en
  138. AddLanguage fr .fr
  139. AddLanguage de .de
  140. AddLanguage da .da
  141. AddLanguage el .el
  142. AddLanguage it .it
  143.  
  144. # LanguagePriority allows you to give precedence to some languages
  145. # in case of a tie during content negotiation.
  146. # Just list the languages in decreasing order of preference.
  147.  
  148. LanguagePriority en fr de
  149.  
  150. # Redirect allows you to tell clients about documents which used to exist in
  151. # your server's namespace, but do not anymore. This allows you to tell the
  152. # clients where to look for the relocated document.
  153. # Format: Redirect fakename url
  154.  
  155.  
  156. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  157. # Alias fakename realname
  158.  
  159. # Note that if you include a trailing / on fakename then the server will
  160. # require it to be present in the URL.  So "/icons" isn't aliased in this
  161. # example.
  162.  
  163. Alias /icons/ "@@ServerRoot@@/icons/"
  164.  
  165. # ScriptAlias: This controls which directories contain server scripts.
  166. # Format: ScriptAlias fakename realname
  167.  
  168. #ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  169.  
  170. # If you want to use server side includes, or CGI outside
  171. # ScriptAliased directories, uncomment the following lines.
  172.  
  173. # AddType allows you to tweak mime.types without actually editing it, or to
  174. # make certain files to be certain types.
  175. # Format: AddType type/subtype ext1
  176.  
  177. # For example, the PHP3 module (not part of the Apache distribution)
  178. # will typically use:
  179. #AddType application/x-httpd-php3 .phtml
  180. #AddType application/x-httpd-php3-source .phps
  181.  
  182. # AddHandler allows you to map certain file extensions to "handlers",
  183. # actions unrelated to filetype. These can be either built into the server
  184. # or added with the Action command (see below)
  185. # Format: AddHandler action-name ext1
  186.  
  187. # To use CGI scripts:
  188. #AddHandler cgi-script .cgi
  189.  
  190. # To use server-parsed HTML files
  191. #AddType text/html .shtml
  192. #AddHandler server-parsed .shtml
  193.  
  194. # Uncomment the following line to enable Apache's send-asis HTTP file
  195. # feature
  196. #AddHandler send-as-is asis
  197.  
  198. # If you wish to use server-parsed imagemap files, use
  199. #AddHandler imap-file map
  200.  
  201. # To enable type maps, you might want to use
  202. #AddHandler type-map var
  203.  
  204. # Action lets you define media types that will execute a script whenever
  205. # a matching file is called. This eliminates the need for repeated URL
  206. # pathnames for oft-used CGI file processors.
  207. # Format: Action media/type /cgi-script/location
  208. # Format: Action handler-name /cgi-script/location
  209.  
  210. # MetaDir: specifies the name of the directory in which Apache can find
  211. # meta information files. These files contain additional HTTP headers
  212. # to include when sending the document
  213.  
  214. #MetaDir .web
  215.  
  216. # MetaSuffix: specifies the file name suffix for the file containing the
  217. # meta information.
  218.  
  219. #MetaSuffix .meta
  220.  
  221. # Customizable error response (Apache style)
  222. #  these come in three flavors
  223. #
  224. #    1) plain text
  225. #ErrorDocument 500 "The server made a boo boo.
  226. #  n.b.  the (") marks it as text, it does not get output
  227. #
  228. #    2) local redirects
  229. #ErrorDocument 404 /missing.html
  230. #  to redirect to local url /missing.html
  231. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  232. #  n.b. can redirect to a script or a document using server-side-includes.
  233. #
  234. #    3) external redirects
  235. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  236. #
  237.  
  238. # mod_mime_magic allows the server to use various hints from the file itself
  239. # to determine its type.
  240. #MimeMagicFile conf/magic
  241.  
  242. # The following directives disable keepalives and HTTP header flushes.
  243. # The first directive disables it for Netscape 2.x and browsers which
  244. # spoof it. There are known problems with these.
  245. # The second directive is for Microsoft Internet Explorer 4.0b2
  246. # which has a broken HTTP/1.1 implementation and does not properly
  247. # support keepalive when it is used on 301 or 302 (redirect) responses.
  248.  
  249. BrowserMatch "Mozilla/2" nokeepalive
  250. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  251.  
  252. # The following directive disables HTTP/1.1 responses to browsers which
  253. # are in violation of the HTTP/1.0 spec by not being able to grok a
  254. # basic 1.1 response.
  255.  
  256. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  257. BrowserMatch "Java/1\.0" force-response-1.0
  258. BrowserMatch "JDK/1\.0" force-response-1.0
  259.