home *** CD-ROM | disk | FTP | other *** search
/ PC World Plus! (NZ) 2001 October / PCW1001.iso / Linux / apache / apache_1.3.20-win32-no_src-r2.msi / Data.Cab / F98940_httpd.confinstwin < prev    next >
Text File  |  2001-05-17  |  36KB  |  979 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. # NOTE: Where filenames are specified, you must use forward slashes
  37. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  38. # If a drive letter is omitted, the drive on which Apache.exe is located
  39. # will be used by default.  It is recommended that you always supply
  40. # an explicit drive letter in absolute paths, however, to avoid
  41. # confusion.
  42. #
  43.  
  44. ### Section 1: Global Environment
  45. #
  46. # The directives in this section affect the overall operation of Apache,
  47. # such as the number of concurrent requests it can handle or where it
  48. # can find its configuration files.
  49. #
  50.  
  51. #
  52. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  53. # Unix platforms.
  54. #
  55. ServerType standalone
  56.  
  57. #
  58. # ServerRoot: The top of the directory tree under which the server's
  59. # configuration, error, and log files are kept.
  60. #
  61. ServerRoot "@@ServerRoot@@"
  62.  
  63. #
  64. # PidFile: The file in which the server should record its process
  65. # identification number when it starts.
  66. #
  67. PidFile logs/httpd.pid
  68.  
  69. #
  70. # ScoreBoardFile: File used to store internal server process information.
  71. # Not all architectures require this.  But if yours does (you'll know because
  72. # this file will be  created when you run Apache) then you *must* ensure that
  73. # no two invocations of Apache share the same scoreboard file.
  74. #
  75. ScoreBoardFile logs/apache_runtime_status
  76.  
  77. #
  78. # In the standard configuration, the server will process httpd.conf (this 
  79. # file, specified by the -f command line option), srm.conf, and access.conf 
  80. # in that order.  The latter two files are now distributed empty, as it is 
  81. # recommended that all directives be kept in a single file for simplicity.  
  82. # The commented-out values below are the built-in defaults.  You can have the 
  83. # server ignore these files altogether by using "/dev/null" (for Unix) or
  84. # "nul" (for Win32) for the arguments to the directives.
  85. #
  86. #ResourceConfig conf/srm.conf
  87. #AccessConfig conf/access.conf
  88.  
  89. #
  90. # Timeout: The number of seconds before receives and sends time out.
  91. #
  92. Timeout 300
  93.  
  94. #
  95. # KeepAlive: Whether or not to allow persistent connections (more than
  96. # one request per connection). Set to "Off" to deactivate.
  97. #
  98. KeepAlive On
  99.  
  100. #
  101. # MaxKeepAliveRequests: The maximum number of requests to allow
  102. # during a persistent connection. Set to 0 to allow an unlimited amount.
  103. # We recommend you leave this number high, for maximum performance.
  104. #
  105. MaxKeepAliveRequests 100
  106.  
  107. #
  108. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  109. # same client on the same connection.
  110. #
  111. KeepAliveTimeout 15
  112.  
  113. #
  114. # Apache on Win32 always creates one child process to handle requests.  If it
  115. # dies, another child process is created automatically.  Within the child
  116. # process multiple threads handle incoming requests.  The next two
  117. # directives control the behaviour of the threads and processes.
  118. #
  119.  
  120. #
  121. # MaxRequestsPerChild: the number of requests each child process is
  122. # allowed to process before the child dies.  The child will exit so
  123. # as to avoid problems after prolonged use when Apache (and maybe the
  124. # libraries it uses) leak memory or other resources.  On most systems, this
  125. # isn't really needed, but a few (such as Solaris) do have notable leaks
  126. # in the libraries.  For Win32, set this value to zero (unlimited)
  127. # unless advised otherwise.
  128. #
  129. # NOTE: This value does not include keepalive requests after the initial
  130. #       request per connection. For example, if a child process handles
  131. #       an initial request and 10 subsequent "keptalive" requests, it
  132. #       would only count as 1 request towards this limit.
  133. #
  134. MaxRequestsPerChild 0
  135.  
  136. #
  137. # Number of concurrent threads (i.e., requests) the server will allow.
  138. # Set this value according to the responsiveness of the server (more
  139. # requests active at once means they're all handled more slowly) and
  140. # the amount of system resources you'll allow the server to consume.
  141. #
  142. ThreadsPerChild 50
  143.  
  144. #
  145. # Listen: Allows you to bind Apache to specific IP addresses and/or
  146. # ports, in addition to the default. See also the <VirtualHost>
  147. # directive.
  148. #
  149. #Listen 3000
  150. #Listen 12.34.56.78:80
  151.  
  152. #
  153. # BindAddress: You can support virtual hosts with this option. This directive
  154. # is used to tell the server which IP address to listen to. It can either
  155. # contain "*", an IP address, or a fully qualified Internet domain name.
  156. # See also the <VirtualHost> and Listen directives.
  157. #
  158. #BindAddress *
  159.  
  160. #
  161. # Apache Modules compiled into the standard Windows build
  162. #
  163. # The following modules are bound into the standard Apache binary distribution
  164. # for Windows.  To change the standard behavior, uncomment the following lines 
  165. # and modify the list of those specific modules to be enabled in the server.
  166. #
  167. # WARNING: This is an advanced option that may render your server inoperable!
  168. # Do not use these directives without expert guidance.
  169. #
  170. #ClearModuleList
  171. #AddModule mod_so.c mod_mime.c mod_access.c mod_auth.c mod_negotiation.c
  172. #AddModule mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_userdir.c
  173. #AddModule mod_alias.c mod_env.c mod_log_config.c mod_asis.c mod_imap.c
  174. #AddModule mod_actions.c mod_setenvif.c mod_isapi.c
  175.  
  176. #
  177. # Dynamic Shared Object (DSO) Support
  178. #
  179. # To be able to use the functionality of a module which was built as a DSO you
  180. # have to place corresponding `LoadModule' lines at this location so the
  181. # directives contained in it are actually available _before_ they are used.
  182. # Please read the file README.DSO in the Apache 1.3 distribution for more
  183. # details about the DSO mechanism and run `apache -l' for the list of already
  184. # built-in (statically linked and thus always available) modules in your Apache
  185. # binary.
  186. #
  187. # Note: The order in which modules are loaded is important.  Don't change
  188. # the order below without expert advice.
  189. #
  190. #LoadModule anon_auth_module modules/mod_auth_anon.so
  191. #LoadModule dbm_auth_module modules/mod_auth_dbm.so
  192. #LoadModule digest_auth_module modules/mod_auth_digest.so
  193. #LoadModule cern_meta_module modules/mod_cern_meta.so
  194. #LoadModule digest_module modules/mod_digest.so
  195. #LoadModule expires_module modules/mod_expires.so
  196. #LoadModule headers_module modules/mod_headers.so
  197. #LoadModule proxy_module modules/mod_proxy.so
  198. #LoadModule rewrite_module modules/mod_rewrite.so
  199. #LoadModule speling_module modules/mod_speling.so
  200. #LoadModule info_module modules/mod_info.so
  201. #LoadModule status_module modules/mod_status.so
  202. #LoadModule usertrack_module modules/mod_usertrack.so
  203.  
  204. #
  205. # ExtendedStatus controls whether Apache will generate "full" status
  206. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  207. # Off) when the "server-status" handler is called. The default is Off.
  208. #
  209. #ExtendedStatus On
  210.  
  211. ### Section 2: 'Main' server configuration
  212. #
  213. # The directives in this section set up the values used by the 'main'
  214. # server, which responds to any requests that aren't handled by a
  215. # <VirtualHost> definition.  These values also provide defaults for
  216. # any <VirtualHost> containers you may define later in the file.
  217. #
  218. # All of these directives may appear inside <VirtualHost> containers,
  219. # in which case these default settings will be overridden for the
  220. # virtual host being defined.
  221. #
  222.  
  223. #
  224. # Port: The port to which the standalone server listens.  Certain firewall
  225. # products must be configured before Apache can listen to a specific port.
  226. # Other running httpd servers will also interfere with this port.  Disable
  227. # all firewall, security, and other services if you encounter problems.
  228. # To help diagnose problems use the Windows NT command NETSTAT -a
  229. #
  230. Port 80
  231.  
  232. #
  233. # ServerAdmin: Your address, where problems with the server should be
  234. # e-mailed.  This address appears on some server-generated pages, such
  235. # as error documents.
  236. #
  237. ServerAdmin @@ServerAdmin@@
  238.  
  239. #
  240. # ServerName allows you to set a host name which is sent back to clients for
  241. # your server if it's different than the one the program would get (i.e., use
  242. # "www" instead of the host's real name).
  243. #
  244. # Note: You cannot just invent host names and hope they work. The name you 
  245. # define here must be a valid DNS name for your host. If you don't understand
  246. # this, ask your network administrator.
  247. # If your host doesn't have a registered DNS name, enter its IP address here.
  248. # You will have to access it by its address (e.g., http://123.45.67.89/)
  249. # anyway, and this will make redirections work in a sensible way.
  250. #
  251. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  252. # machine always knows itself by this address. If you use Apache strictly for 
  253. # local testing and development, you may use 127.0.0.1 as the server name.
  254. #
  255. ServerName @@ServerName@@
  256.  
  257.  
  258. #
  259. # DocumentRoot: The directory out of which you will serve your
  260. # documents. By default, all requests are taken from this directory, but
  261. # symbolic links and aliases may be used to point to other locations.
  262. #
  263. DocumentRoot "@@ServerRoot@@/htdocs"
  264.  
  265. #
  266. # Each directory to which Apache has access, can be configured with respect
  267. # to which services and features are allowed and/or disabled in that
  268. # directory (and its subdirectories). 
  269. #
  270. # First, we configure the "default" to be a very restrictive set of 
  271. # permissions.  
  272. #
  273. <Directory />
  274.     Options FollowSymLinks
  275.     AllowOverride None
  276. </Directory>
  277.  
  278. #
  279. # Note that from this point forward you must specifically allow
  280. # particular features to be enabled - so if something's not working as
  281. # you might expect, make sure that you have specifically enabled it
  282. # below.
  283. #
  284.  
  285. #
  286. # This should be changed to whatever you set DocumentRoot to.
  287. #
  288. <Directory "@@ServerRoot@@/htdocs">
  289.  
  290. #
  291. # This may also be "None", "All", or any combination of "Indexes",
  292. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  293. #
  294. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  295. # doesn't give it to you.
  296. #
  297.     Options Indexes FollowSymLinks MultiViews
  298.  
  299. #
  300. # This controls which options the .htaccess files in directories can
  301. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  302. # "AuthConfig", and "Limit"
  303. #
  304.     AllowOverride None
  305.  
  306. #
  307. # Controls who can get stuff from this server.
  308. #
  309.     Order allow,deny
  310.     Allow from all
  311. </Directory>
  312.  
  313. #
  314. # UserDir: The name of the directory which is appended onto a user's home
  315. # directory if a ~user request is received.
  316. #
  317. # Under Win32, we do not currently try to determine the home directory of
  318. # a Windows login, so a format such as that below needs to be used.  See
  319. # the UserDir documentation for details.
  320. #
  321. <IfModule mod_userdir.c>
  322.     UserDir "@@ServerRoot@@/users/"
  323. </IfModule>
  324.  
  325. #
  326. # Control access to UserDir directories.  The following is an example
  327. # for a site where these directories are restricted to read-only.
  328. #
  329. #<Directory "@@ServerRoot@@/users">
  330. #    AllowOverride FileInfo AuthConfig Limit
  331. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  332. #    <Limit GET POST OPTIONS PROPFIND>
  333. #        Order allow,deny
  334. #        Allow from all
  335. #    </Limit>
  336. #    <LimitExcept GET POST OPTIONS PROPFIND>
  337. #        Order deny,allow
  338. #        Deny from all
  339. #    </LimitExcept>
  340. #</Directory>
  341.  
  342. #
  343. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  344. # directory index.  Separate multiple entries with spaces.
  345. #
  346. <IfModule mod_dir.c>
  347.     DirectoryIndex index.html
  348. </IfModule>
  349.  
  350. #
  351. # AccessFileName: The name of the file to look for in each directory
  352. # for access control information.
  353. #
  354. AccessFileName .htaccess
  355.  
  356. #
  357. # The following lines prevent .htaccess files from being viewed by
  358. # Web clients.  Since .htaccess files often contain authorization
  359. # information, access is disallowed for security reasons.  Comment
  360. # these lines out if you want Web visitors to see the contents of
  361. # .htaccess files.  If you change the AccessFileName directive above,
  362. # be sure to make the corresponding changes here.
  363. #
  364. # Also, folks tend to use names such as .htpasswd for password
  365. # files, so this will protect those as well.
  366. #
  367. <Files ~ "^\.ht">
  368.     Order allow,deny
  369.     Deny from all
  370. </Files>
  371.  
  372. #
  373. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  374. # document that was negotiated on the basis of content. This asks proxy
  375. # servers not to cache the document. Uncommenting the following line disables
  376. # this behavior, and proxies will be allowed to cache the documents.
  377. #
  378. #CacheNegotiatedDocs
  379.  
  380. #
  381. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  382. # Apache needs to construct a self-referencing URL (a URL that refers back
  383. # to the server the response is coming from) it will use ServerName and
  384. # Port to form a "canonical" name.  With this setting off, Apache will
  385. # use the hostname:port that the client supplied, when possible.  This
  386. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  387. #
  388. UseCanonicalName On
  389.  
  390. #
  391. # TypesConfig describes where the mime.types file (or equivalent) is
  392. # to be found.
  393. #
  394. <IfModule mod_mime.c>
  395.     TypesConfig conf/mime.types
  396. </IfModule>
  397.  
  398. #
  399. # DefaultType is the default MIME type the server will use for a document
  400. # if it cannot otherwise determine one, such as from filename extensions.
  401. # If your server contains mostly text or HTML documents, "text/plain" is
  402. # a good value.  If most of your content is binary, such as applications
  403. # or images, you may want to use "application/octet-stream" instead to
  404. # keep browsers from trying to display binary files as though they are
  405. # text.
  406. #
  407. DefaultType text/plain
  408.  
  409. #
  410. # The mod_mime_magic module allows the server to use various hints from the
  411. # contents of the file itself to determine its type.  The MIMEMagicFile
  412. # directive tells the module where the hint definitions are located.
  413. # mod_mime_magic is not part of the default server (you have to add
  414. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  415. # Environment' section], or recompile the server and include mod_mime_magic
  416. # as part of the configuration), so it's enclosed in an <IfModule> container.
  417. # This means that the MIMEMagicFile directive will only be processed if the
  418. # module is part of the server.
  419. #
  420. <IfModule mod_mime_magic.c>
  421.     MIMEMagicFile conf/magic
  422. </IfModule>
  423.  
  424. #
  425. # HostnameLookups: Log the names of clients or just their IP addresses
  426. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  427. # The default is off because it'd be overall better for the net if people
  428. # had to knowingly turn this feature on, since enabling it means that
  429. # each client request will result in AT LEAST one lookup request to the
  430. # nameserver.
  431. #
  432. HostnameLookups Off
  433.  
  434. #
  435. # ErrorLog: The location of the error log file.
  436. # If you do not specify an ErrorLog directive within a <VirtualHost>
  437. # container, error messages relating to that virtual host will be
  438. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  439. # container, that host's errors will be logged there and not here.
  440. #
  441. ErrorLog logs/error.log
  442.  
  443. #
  444. # LogLevel: Control the number of messages logged to the error.log.
  445. # Possible values include: debug, info, notice, warn, error, crit,
  446. # alert, emerg.
  447. #
  448. LogLevel warn
  449.  
  450. #
  451. # The following directives define some format nicknames for use with
  452. # a CustomLog directive (see below).
  453. #
  454. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  455. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  456. LogFormat "%{Referer}i -> %U" referer
  457. LogFormat "%{User-agent}i" agent
  458.  
  459. #
  460. # The location and format of the access logfile (Common Logfile Format).
  461. # If you do not define any access logfiles within a <VirtualHost>
  462. # container, they will be logged here.  Contrariwise, if you *do*
  463. # define per-<VirtualHost> access logfiles, transactions will be
  464. # logged therein and *not* in this file.
  465. #
  466. CustomLog logs/access.log common
  467.  
  468. #
  469. # If you would like to have agent and referer logfiles, uncomment the
  470. # following directives.
  471. #
  472. #CustomLog logs/referer.log referer
  473. #CustomLog logs/agent.log agent
  474.  
  475. #
  476. # If you prefer a single logfile with access, agent, and referer information
  477. # (Combined Logfile Format) you can use the following directive.
  478. #
  479. #CustomLog logs/access.log combined
  480.  
  481. #
  482. # Optionally add a line containing the server version and virtual host
  483. # name to server-generated pages (error documents, FTP directory listings,
  484. # mod_status and mod_info output etc., but not CGI generated documents).
  485. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  486. # Set to one of:  On | Off | EMail
  487. #
  488. ServerSignature On
  489.  
  490. # Apache parses all CGI scripts for the shebang line by default.
  491. # This comment line, the first line of the script, consists of the symbols
  492. # pound (#) and exclamation (!) followed by the path of the program that 
  493. # can execute this specific script.  For a perl script, with perl.exe in
  494. # the C:\Program Files\Perl directory, the shebang line should be:
  495.  
  496.    #!c:/program files/perl/perl
  497.  
  498. # Note you _must_not_ indent the actual shebang line, and it must be the
  499. # first line of the file.  Of course, CGI processing must be enabled by 
  500. # the appropriate ScriptAlias or Options ExecCGI directives for the files 
  501. # or directory in question.
  502. #
  503. # However, Apache on Windows allows either the Unix behavior above, or can
  504. # use the Registry to match files by extention.  The command to execute 
  505. # a file of this type is retrieved from the registry by the same method as 
  506. # the Windows Explorer would use to handle double-clicking on a file.
  507. # These script actions can be configured from the Windows Explorer View menu, 
  508. # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
  509. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  510. # perform the 'Open' Action, and failing that it will try the shebang line.
  511. # This behavior is subject to change in Apache release 2.0.
  512. #
  513. # Each mechanism has it's own specific security weaknesses, from the means
  514. # to run a program you didn't intend the website owner to invoke, and the
  515. # best method is a matter of great debate.
  516. #
  517. # To enable the this Windows specific behavior (and therefore -disable- the
  518. # equivilant Unix behavior), uncomment the following directive:
  519. #
  520. #ScriptInterpreterSource registry
  521. #
  522. # The directive above can be placed in individual <Directory> blocks or the
  523. # .htaccess file, with either the 'registry' (Windows behavior) or 'script' 
  524. # (Unix behavior) option, and will override this server default option.
  525. #
  526.  
  527. #
  528. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  529. # Alias fakename realname
  530. #
  531. <IfModule mod_alias.c>
  532.  
  533.     #
  534.     # Note that if you include a trailing / on fakename then the server will
  535.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  536.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  537.     # realname must also be slash terminated, and if the fakename omits the 
  538.     # trailing slash, the realname must also omit it.
  539.     #
  540.     Alias /icons/ "@@ServerRoot@@/icons/"
  541.  
  542.     <Directory "@@ServerRoot@@/icons">
  543.         Options Indexes MultiViews
  544.         AllowOverride None
  545.         Order allow,deny
  546.         Allow from all
  547.     </Directory>
  548.  
  549.     #
  550.     # ScriptAlias: This controls which directories contain server scripts.
  551.     # ScriptAliases are essentially the same as Aliases, except that
  552.     # documents in the realname directory are treated as applications and
  553.     # run by the server when requested rather than as documents sent to the client.
  554.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  555.     # Alias.
  556.     #
  557.     ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  558.  
  559.     #
  560.     # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
  561.     # CGI directory exists, if you have that configured.
  562.     #
  563.     <Directory "@@ServerRoot@@/cgi-bin">
  564.         AllowOverride None
  565.         Options None
  566.         Order allow,deny
  567.         Allow from all
  568.     </Directory>
  569.  
  570. </IfModule>
  571. # End of aliases.
  572.  
  573. #
  574. # Redirect allows you to tell clients about documents which used to exist in
  575. # your server's namespace, but do not anymore. This allows you to tell the
  576. # clients where to look for the relocated document.
  577. # Format: Redirect old-URI new-URL
  578. #
  579.  
  580. #
  581. # Directives controlling the display of server-generated directory listings.
  582. #
  583. <IfModule mod_autoindex.c>
  584.  
  585.     #
  586.     # FancyIndexing is whether you want fancy directory indexing or standard
  587.     #
  588.     # Note, add the option TrackModified to the IndexOptions default list only
  589.     # if all indexed directories reside on NTFS volumes.  The TrackModified flag
  590.     # will report the Last-Modified date to assist caches and proxies to properly
  591.     # track directory changes, but it does _not_ work on FAT volumes.
  592.     #
  593.     IndexOptions FancyIndexing
  594.  
  595.     #
  596.     # AddIcon* directives tell the server which icon to show for different
  597.     # files or filename extensions.  These are only displayed for
  598.     # FancyIndexed directories.
  599.     #
  600.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  601.  
  602.     AddIconByType (TXT,/icons/text.gif) text/*
  603.     AddIconByType (IMG,/icons/image2.gif) image/*
  604.     AddIconByType (SND,/icons/sound2.gif) audio/*
  605.     AddIconByType (VID,/icons/movie.gif) video/*
  606.  
  607.     AddIcon /icons/binary.gif .bin .exe
  608.     AddIcon /icons/binhex.gif .hqx
  609.     AddIcon /icons/tar.gif .tar
  610.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  611.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  612.     AddIcon /icons/a.gif .ps .ai .eps
  613.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  614.     AddIcon /icons/text.gif .txt
  615.     AddIcon /icons/c.gif .c
  616.     AddIcon /icons/p.gif .pl .py
  617.     AddIcon /icons/f.gif .for
  618.     AddIcon /icons/dvi.gif .dvi
  619.     AddIcon /icons/uuencoded.gif .uu
  620.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  621.     AddIcon /icons/tex.gif .tex
  622.     AddIcon /icons/bomb.gif core
  623.  
  624.     AddIcon /icons/back.gif ..
  625.     AddIcon /icons/hand.right.gif README
  626.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  627.     AddIcon /icons/blank.gif ^^BLANKICON^^
  628.  
  629.     #
  630.     # DefaultIcon is which icon to show for files which do not have an icon
  631.     # explicitly set.
  632.     #
  633.     DefaultIcon /icons/unknown.gif
  634.  
  635.     #
  636.     # AddDescription allows you to place a short description after a file in
  637.     # server-generated indexes.  These are only displayed for FancyIndexed
  638.     # directories.
  639.     # Format: AddDescription "description" filename
  640.     #
  641.     #AddDescription "GZIP compressed document" .gz
  642.     #AddDescription "tar archive" .tar
  643.     #AddDescription "GZIP compressed tar archive" .tgz
  644.  
  645.     #
  646.     # ReadmeName is the name of the README file the server will look for by
  647.     # default, and append to directory listings.
  648.     #
  649.     # HeaderName is the name of a file which should be prepended to
  650.     # directory indexes. 
  651.     #
  652.     # If MultiViews are amongst the Options in effect, the server will
  653.     # first look for name.html and include it if found.  If name.html
  654.     # doesn't exist, the server will then look for name.txt and include
  655.     # it as plaintext if found.
  656.     #
  657.     ReadmeName README
  658.     HeaderName HEADER
  659.  
  660.     #
  661.     # IndexIgnore is a set of filenames which directory indexing should ignore
  662.     # and not include in the listing.  Shell-style wildcarding is permitted.
  663.     #
  664.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  665.  
  666. </IfModule>
  667. # End of indexing directives.
  668.  
  669. #
  670. # Document types.
  671. #
  672. <IfModule mod_mime.c>
  673.  
  674.     #
  675.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  676.     # information on the fly. Note: Not all browsers support this.
  677.     # Despite the name similarity, the following Add* directives have nothing
  678.     # to do with the FancyIndexing customization directives above.
  679.     #
  680.     AddEncoding x-compress Z
  681.     AddEncoding x-gzip gz tgz
  682.     #
  683.     # AddLanguage allows you to specify the language of a document. You can
  684.     # then use content negotiation to give a browser a file in a language
  685.     # it can understand.
  686.     #
  687.     # Note 1: The suffix does not have to be the same as the language
  688.     # keyword --- those with documents in Polish (whose net-standard
  689.     # language code is pl) may wish to use "AddLanguage pl .po" to
  690.     # avoid the ambiguity with the common suffix for perl scripts.
  691.     #
  692.     # Note 2: The example entries below illustrate that in quite
  693.     # some cases the two character 'Language' abbreviation is not
  694.     # identical to the two character 'Country' code for its country,
  695.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  696.     #
  697.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  698.     # specifier. But there is 'work in progress' to fix this and get
  699.     # the reference data for rfc1766 cleaned up.
  700.     #
  701.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  702.     # French (fr) - German (de) - Greek-Modern (el)
  703.     # Italian (it) - Korean (kr) - Norwegian (no)
  704.     # Portugese (pt) - Luxembourgeois* (ltz)
  705.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  706.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  707.     # Russian (ru)
  708.     #
  709.     AddLanguage da .dk
  710.     AddLanguage nl .nl
  711.     AddLanguage en .en
  712.     AddLanguage et .ee
  713.     AddLanguage fr .fr
  714.     AddLanguage de .de
  715.     AddLanguage el .el
  716.     AddLanguage he .he
  717.     AddCharset ISO-8859-8 .iso8859-8
  718.     AddLanguage it .it
  719.     AddLanguage ja .ja
  720.     AddCharset ISO-2022-JP .jis
  721.     AddLanguage kr .kr
  722.     AddCharset ISO-2022-KR .iso-kr
  723.     AddLanguage no .no
  724.     AddLanguage pl .po
  725.     AddCharset ISO-8859-2 .iso-pl
  726.     AddLanguage pt .pt
  727.     AddLanguage pt-br .pt-br
  728.     AddLanguage ltz .lu
  729.     AddLanguage ca .ca
  730.     AddLanguage es .es
  731.     AddLanguage sv .se
  732.     AddLanguage cz .cz
  733.     AddLanguage ru .ru
  734.     AddLanguage tw .tw
  735.     AddLanguage zh-tw .tw
  736.     AddCharset Big5         .Big5    .big5
  737.     AddCharset WINDOWS-1251 .cp-1251
  738.     AddCharset CP866        .cp866
  739.     AddCharset ISO-8859-5   .iso-ru
  740.     AddCharset KOI8-R       .koi8-r
  741.     AddCharset UCS-2        .ucs2
  742.     AddCharset UCS-4        .ucs4
  743.     AddCharset UTF-8        .utf8
  744.  
  745.     # LanguagePriority allows you to give precedence to some languages
  746.     # in case of a tie during content negotiation.
  747.     #
  748.     # Just list the languages in decreasing order of preference. We have
  749.     # more or less alphabetized them here. You probably want to change this.
  750.     #
  751.     <IfModule mod_negotiation.c>
  752.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  753.     </IfModule>
  754.  
  755.     #
  756.     # AddType allows you to tweak mime.types without actually editing it, or to
  757.     # make certain files to be certain types.
  758.     #
  759.     # For example, the PHP 3.x module (not part of the Apache distribution - see
  760.     # http://www.php.net) will typically use:
  761.     #
  762.     #AddType application/x-httpd-php3 .php3
  763.     #AddType application/x-httpd-php3-source .phps
  764.     #
  765.     # And for PHP 4.x, use:
  766.     #
  767.     #AddType application/x-httpd-php .php
  768.     #AddType application/x-httpd-php-source .phps
  769.  
  770.     AddType application/x-tar .tgz
  771.  
  772.     #
  773.     # AddHandler allows you to map certain file extensions to "handlers",
  774.     # actions unrelated to filetype. These can be either built into the server
  775.     # or added with the Action command (see below)
  776.     #
  777.     # If you want to use server side includes, or CGI outside
  778.     # ScriptAliased directories, uncomment the following lines.
  779.     #
  780.     # To use CGI scripts:
  781.     #
  782.     #AddHandler cgi-script .cgi
  783.  
  784.     #
  785.     # To use server-parsed HTML files
  786.     #
  787.     #AddType text/html .shtml
  788.     #AddHandler server-parsed .shtml
  789.  
  790.     #
  791.     # Uncomment the following line to enable Apache's send-asis HTTP file
  792.     # feature
  793.     #
  794.     #AddHandler send-as-is asis
  795.  
  796.     #
  797.     # If you wish to use server-parsed imagemap files, use
  798.     #
  799.     #AddHandler imap-file map
  800.  
  801.     #
  802.     # To enable type maps, you might want to use
  803.     #
  804.     #AddHandler type-map var
  805.  
  806. </IfModule>
  807. # End of document types.
  808.  
  809. #
  810. # Action lets you define media types that will execute a script whenever
  811. # a matching file is called. This eliminates the need for repeated URL
  812. # pathnames for oft-used CGI file processors.
  813. # Format: Action media/type /cgi-script/location
  814. # Format: Action handler-name /cgi-script/location
  815. #
  816.  
  817. #
  818. # MetaDir: specifies the name of the directory in which Apache can find
  819. # meta information files. These files contain additional HTTP headers
  820. # to include when sending the document
  821. #
  822. #MetaDir .web
  823.  
  824. #
  825. # MetaSuffix: specifies the file name suffix for the file containing the
  826. # meta information.
  827. #
  828. #MetaSuffix .meta
  829.  
  830. #
  831. # Customizable error response (Apache style)
  832. #  these come in three flavors
  833. #
  834. #    1) plain text
  835. #ErrorDocument 500 "The server made a boo boo.
  836. #  n.b.  the single leading (") marks it as text, it does not get output
  837. #
  838. #    2) local redirects
  839. #ErrorDocument 404 /missing.html
  840. #  to redirect to local URL /missing.html
  841. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  842. #  N.B.: You can redirect to a script or a document using server-side-includes.
  843. #
  844. #    3) external redirects
  845. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  846. #  N.B.: Many of the environment variables associated with the original
  847. #  request will *not* be available to such a script.
  848.  
  849. #
  850. # Customize behaviour based on the browser
  851. #
  852. <IfModule mod_setenvif.c>
  853.  
  854.     #
  855.     # The following directives modify normal HTTP response behavior.
  856.     # The first directive disables keepalive for Netscape 2.x and browsers that
  857.     # spoof it. There are known problems with these browser implementations.
  858.     # The second directive is for Microsoft Internet Explorer 4.0b2
  859.     # which has a broken HTTP/1.1 implementation and does not properly
  860.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  861.     #
  862.     BrowserMatch "Mozilla/2" nokeepalive
  863.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  864.  
  865.     #
  866.     # The following directive disables HTTP/1.1 responses to browsers which
  867.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  868.     # basic 1.1 response.
  869.     #
  870.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  871.     BrowserMatch "Java/1\.0" force-response-1.0
  872.     BrowserMatch "JDK/1\.0" force-response-1.0
  873.  
  874. </IfModule>
  875. # End of browser customization directives
  876.  
  877. #
  878. # Allow server status reports, with the URL of http://servername/server-status
  879. # Change the "@@Domain@@" to match your domain to enable.
  880. #
  881. #<Location /server-status>
  882. #    SetHandler server-status
  883. #    Order deny,allow
  884. #    Deny from all
  885. #    Allow from @@Domain@@
  886. #</Location>
  887.  
  888. #
  889. # Allow remote server configuration reports, with the URL of
  890. # http://servername/server-info (requires that mod_info.c be loaded).
  891. # Change the "@@Domain@@" to match your domain to enable.
  892. #
  893. #<Location /server-info>
  894. #    SetHandler server-info
  895. #    Order deny,allow
  896. #    Deny from all
  897. #    Allow from @@Domain@@
  898. #</Location>
  899.  
  900. #
  901. # There have been reports of people trying to abuse an old bug from pre-1.1
  902. # days.  This bug involved a CGI script distributed as a part of Apache.
  903. # By uncommenting these lines you can redirect these attacks to a logging 
  904. # script on phf.apache.org.  Or, you can record them yourself, using the script
  905. # support/phf_abuse_log.cgi.
  906. #
  907. #<Location /cgi-bin/phf*>
  908. #    Deny from all
  909. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  910. #</Location>
  911.  
  912. #
  913. # Proxy Server directives. Uncomment the following lines to
  914. # enable the proxy server:
  915. #
  916. #<IfModule mod_proxy.c>
  917. #    ProxyRequests On
  918.  
  919. #    <Directory proxy:*>
  920. #        Order deny,allow
  921. #        Deny from all
  922. #        Allow from @@Domain@@
  923. #    </Directory>
  924.  
  925.     #
  926.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  927.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  928.     # Set to one of: Off | On | Full | Block
  929.     #
  930. #    ProxyVia On
  931.  
  932.     #
  933.     # To enable the cache as well, edit and uncomment the following lines:
  934.     # (no cacheing without CacheRoot)
  935.     #
  936. #    CacheRoot "@@ServerRoot@@/proxy"
  937. #    CacheSize 5
  938. #    CacheGcInterval 4
  939. #    CacheMaxExpire 24
  940. #    CacheLastModifiedFactor 0.1
  941. #    CacheDefaultExpire 1
  942. #    NoCache a_domain.com another_domain.edu joes.garage_sale.com
  943.  
  944. #</IfModule>
  945. # End of proxy directives.
  946.  
  947. ### Section 3: Virtual Hosts
  948. #
  949. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  950. # machine you can setup VirtualHost containers for them. Most configurations
  951. # use only name-based virtual hosts so the server doesn't need to worry about
  952. # IP addresses. This is indicated by the asterisks in the directives below.
  953. #
  954. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  955. # for further details before you try to setup virtual hosts.
  956. #
  957. # You may use the command line option '-S' to verify your virtual host
  958. # configuration.
  959.  
  960. #
  961. # Use name-based virtual hosting.
  962. #
  963. #NameVirtualHost *
  964.  
  965. #
  966. # VirtualHost example:
  967. # Almost any Apache directive may go into a VirtualHost container.
  968. # The first VirtualHost section is used for requests without a known
  969. # server name.
  970. #
  971. #<VirtualHost *>
  972. #    ServerAdmin webmaster@dummy-host.example.com
  973. #    DocumentRoot /www/docs/dummy-host.example.com
  974. #    ServerName dummy-host.example.com
  975. #    ErrorLog logs/dummy-host.example.com-error_log
  976. #    CustomLog logs/dummy-host.example.com-access_log common
  977. #</VirtualHost>
  978.