home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 September / PCWorld_2002-09_cd.bin / Komunik / apache / apache_2.0.39-win32-x86-no_ssl.msi / Data.Cab / F98940_httpdwin.conf < prev    next >
Text File  |  2002-06-13  |  33KB  |  947 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://httpd.apache.org/docs-2.0/> 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. # The configuration directives are grouped into three basic sections:
  14. #  1. Directives that control the operation of the Apache server process as a
  15. #     whole (the 'global environment').
  16. #  2. Directives that define the parameters of the 'main' or 'default' server,
  17. #     which responds to requests that aren't handled by a virtual host.
  18. #     These directives also provide default values for the settings
  19. #     of all virtual hosts.
  20. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  21. #     different IP addresses or hostnames and have them handled by the
  22. #     same Apache server process.
  23. #
  24. # Configuration and logfile names: If the filenames you specify for many
  25. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  26. # server will use that explicit path.  If the filenames do *not* begin
  27. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  28. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  29. # server as "/usr/local/apache/logs/foo.log".
  30. #
  31. # NOTE: Where filenames are specified, you must use forward slashes
  32. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  33. # If a drive letter is omitted, the drive on which Apache.exe is located
  34. # will be used by default.  It is recommended that you always supply
  35. # an explicit drive letter in absolute paths, however, to avoid
  36. # confusion.
  37. #
  38.  
  39. ### Section 1: Global Environment
  40. #
  41. # The directives in this section affect the overall operation of Apache,
  42. # such as the number of concurrent requests it can handle or where it
  43. # can find its configuration files.
  44. #
  45.  
  46. #
  47. # ServerRoot: The top of the directory tree under which the server's
  48. # configuration, error, and log files are kept.
  49. #
  50. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  51. # mounted filesystem then please read the LockFile documentation
  52. # (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
  53. # you will save yourself a lot of trouble.
  54. #
  55. # Do NOT add a slash at the end of the directory path.
  56. #
  57. ServerRoot "@@ServerRoot@@"
  58.  
  59. #
  60. # ScoreBoardFile: File used to store internal server process information.
  61. # If unspecified (the default), the scoreboard will be stored in an
  62. # anonymous shared memory segment, and will be unavailable to third-party
  63. # applications.
  64. # If specified, ensure that no two invocations of Apache share the same
  65. # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
  66. #
  67. #ScoreBoardFile logs/apache_runtime_status
  68.  
  69. #
  70. # PidFile: The file in which the server should record its process
  71. # identification number when it starts.
  72. #
  73. PidFile logs/httpd.pid
  74.  
  75. #
  76. # Timeout: The number of seconds before receives and sends time out.
  77. #
  78. Timeout 300
  79.  
  80. #
  81. # KeepAlive: Whether or not to allow persistent connections (more than
  82. # one request per connection). Set to "Off" to deactivate.
  83. #
  84. KeepAlive On
  85.  
  86. #
  87. # MaxKeepAliveRequests: The maximum number of requests to allow
  88. # during a persistent connection. Set to 0 to allow an unlimited amount.
  89. # We recommend you leave this number high, for maximum performance.
  90. #
  91. MaxKeepAliveRequests 100
  92.  
  93. #
  94. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  95. # same client on the same connection.
  96. #
  97. KeepAliveTimeout 15
  98.  
  99. ##
  100. ## Server-Pool Size Regulation (MPM specific)
  101. ## 
  102.  
  103. # WinNT MPM
  104. # ThreadsPerChild: constant number of worker threads in the server process
  105. # MaxRequestsPerChild: maximum  number of requests a server process serves
  106. <IfModule mpm_winnt.c>
  107. ThreadsPerChild 250
  108. MaxRequestsPerChild  0
  109. </IfModule>
  110.  
  111. #
  112. # Listen: Allows you to bind Apache to specific IP addresses and/or
  113. # ports, in addition to the default. See also the <VirtualHost>
  114. # directive.
  115. #
  116. # Change this to Listen on specific IP addresses as shown below to 
  117. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  118. #
  119. #Listen 12.34.56.78:80
  120. Listen @@Port@@
  121.  
  122. #
  123. # Dynamic Shared Object (DSO) Support
  124. #
  125. # To be able to use the functionality of a module which was built as a DSO you
  126. # have to place corresponding `LoadModule' lines at this location so the
  127. # directives contained in it are actually available _before_ they are used.
  128. # Statically compiled modules (those listed by `httpd -l') do not need
  129. # to be loaded here.
  130. #
  131. # Example:
  132. # LoadModule foo_module modules/mod_foo.so
  133. #
  134. LoadModule access_module modules/mod_access.so
  135. LoadModule actions_module modules/mod_actions.so
  136. LoadModule alias_module modules/mod_alias.so
  137. LoadModule asis_module modules/mod_asis.so
  138. LoadModule auth_module modules/mod_auth.so
  139. #LoadModule auth_anon_module modules/mod_auth_anon.so
  140. #LoadModule auth_dbm_module modules/mod_auth_dbm.so
  141. #LoadModule auth_digest_module modules/mod_auth_digest.so
  142. LoadModule autoindex_module modules/mod_autoindex.so
  143. #LoadModule cern_meta_module modules/mod_cern_meta.so
  144. LoadModule cgi_module modules/mod_cgi.so
  145. #LoadModule dav_module modules/mod_dav.so
  146. #LoadModule dav_fs_module modules/mod_dav_fs.so
  147. LoadModule dir_module modules/mod_dir.so
  148. LoadModule env_module modules/mod_env.so
  149. #LoadModule expires_module modules/mod_expires.so
  150. #LoadModule file_cache_module modules/mod_file_cache.so
  151. #LoadModule headers_module modules/mod_headers.so
  152. LoadModule imap_module modules/mod_imap.so
  153. LoadModule include_module modules/mod_include.so
  154. #LoadModule info_module modules/mod_info.so
  155. LoadModule isapi_module modules/mod_isapi.so
  156. LoadModule log_config_module modules/mod_log_config.so
  157. LoadModule mime_module modules/mod_mime.so
  158. #LoadModule mime_magic_module modules/mod_mime_magic.so
  159. #LoadModule proxy_module modules/mod_proxy.so
  160. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  161. #LoadModule proxy_http_module modules/mod_proxy_http.so
  162. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  163. LoadModule negotiation_module modules/mod_negotiation.so
  164. #LoadModule rewrite_module modules/mod_rewrite.so
  165. LoadModule setenvif_module modules/mod_setenvif.so
  166. #LoadModule speling_module modules/mod_speling.so
  167. #LoadModule status_module modules/mod_status.so
  168. #LoadModule unique_id_module modules/mod_unique_id.so
  169. LoadModule userdir_module modules/mod_userdir.so
  170. #LoadModule usertrack_module modules/mod_usertrack.so
  171. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  172. #LoadModule ssl_module modules/mod_ssl.so
  173.  
  174. #
  175. # ExtendedStatus controls whether Apache will generate "full" status
  176. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  177. # Off) when the "server-status" handler is called. The default is Off.
  178. #
  179. #ExtendedStatus On
  180.  
  181. ### Section 2: 'Main' server configuration
  182. #
  183. # The directives in this section set up the values used by the 'main'
  184. # server, which responds to any requests that aren't handled by a
  185. # <VirtualHost> definition.  These values also provide defaults for
  186. # any <VirtualHost> containers you may define later in the file.
  187. #
  188. # All of these directives may appear inside <VirtualHost> containers,
  189. # in which case these default settings will be overridden for the
  190. # virtual host being defined.
  191. #
  192.  
  193. #
  194. # ServerAdmin: Your address, where problems with the server should be
  195. # e-mailed.  This address appears on some server-generated pages, such
  196. # as error documents.  e.g. admin@your-domain.com
  197. #
  198. ServerAdmin @@ServerAdmin@@
  199.  
  200. #
  201. # ServerName gives the name and port that the server uses to identify itself.
  202. # This can often be determined automatically, but we recommend you specify
  203. # it explicitly to prevent problems during startup.
  204. #
  205. # If this is not set to valid DNS name for your host, server-generated
  206. # redirections will not work.  See also the UseCanonicalName directive.
  207. #
  208. # If your host doesn't have a registered DNS name, enter its IP address here.
  209. # You will have to access it by its address anyway, and this will make 
  210. # redirections work in a sensible way.
  211. #
  212. ServerName @@ServerName@@:@@Port@@
  213.  
  214. #
  215. # UseCanonicalName: Determines how Apache constructs self-referencing 
  216. # URLs and the SERVER_NAME and SERVER_PORT variables.
  217. # When set "Off", Apache will use the Hostname and Port supplied
  218. # by the client.  When set "On", Apache will use the value of the
  219. # ServerName directive.
  220. #
  221. UseCanonicalName Off
  222.  
  223. #
  224. # DocumentRoot: The directory out of which you will serve your
  225. # documents. By default, all requests are taken from this directory, but
  226. # symbolic links and aliases may be used to point to other locations.
  227. #
  228. DocumentRoot "@@ServerRoot@@/htdocs"
  229.  
  230. #
  231. # Each directory to which Apache has access can be configured with respect
  232. # to which services and features are allowed and/or disabled in that
  233. # directory (and its subdirectories). 
  234. #
  235. # First, we configure the "default" to be a very restrictive set of 
  236. # features.  
  237. #
  238. <Directory />
  239.     Options FollowSymLinks
  240.     AllowOverride None
  241. </Directory>
  242.  
  243. #
  244. # Note that from this point forward you must specifically allow
  245. # particular features to be enabled - so if something's not working as
  246. # you might expect, make sure that you have specifically enabled it
  247. # below.
  248. #
  249.  
  250. #
  251. # This should be changed to whatever you set DocumentRoot to.
  252. #
  253. <Directory "@@ServerRoot@@/htdocs">
  254.  
  255. #
  256. # Possible values for the Options directive are "None", "All",
  257. # or any combination of:
  258. #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
  259. #
  260. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  261. # doesn't give it to you.
  262. #
  263. # The Options directive is both complicated and important.  Please see
  264. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  265. # for more information.
  266. #
  267.     Options Indexes FollowSymLinks
  268.  
  269. #
  270. # AllowOverride controls what directives may be placed in .htaccess files.
  271. # It can be "All", "None", or any combination of the keywords:
  272. #   Options FileInfo AuthConfig Limit
  273. #
  274.     AllowOverride None
  275.  
  276. #
  277. # Controls who can get stuff from this server.
  278. #
  279.     Order allow,deny
  280.     Allow from all
  281.  
  282. </Directory>
  283.  
  284. #
  285. # UserDir: The name of the directory that is appended onto a user's home
  286. # directory if a ~user request is received.  Be especially careful to use
  287. # proper, forward slashes here.
  288. #
  289. UserDir "My Documents/My Website"
  290.  
  291. #
  292. # Control access to UserDir directories.  The following is an example
  293. # for a site where these directories are restricted to read-only.
  294. #
  295. # You must correct the path for the root to match your system's configured
  296. # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
  297. # or whichever, as appropriate.
  298. #
  299. #<Directory "C:/Documents and Settings/*/My Documents/My Website">
  300. #    AllowOverride FileInfo AuthConfig Limit
  301. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  302. #    <Limit GET POST OPTIONS PROPFIND>
  303. #        Order allow,deny
  304. #        Allow from all
  305. #    </Limit>
  306. #    <LimitExcept GET POST OPTIONS PROPFIND>
  307. #        Order deny,allow
  308. #        Deny from all
  309. #    </LimitExcept>
  310. #</Directory>
  311.  
  312. #
  313. # DirectoryIndex: sets the file that Apache will serve if a directory
  314. # is requested.
  315. #
  316. # The index.html.var file (a type-map) is used to deliver content-
  317. # negotiated documents.  The MultiViews Option can be used for the 
  318. # same purpose, but it is much slower.
  319. #
  320. DirectoryIndex index.html index.html.var
  321.  
  322. #
  323. # AccessFileName: The name of the file to look for in each directory
  324. # for access control information.  See also the AllowOverride directive.
  325. #
  326. AccessFileName .htaccess
  327.  
  328. #
  329. # The following lines prevent .htaccess and .htpasswd files from being 
  330. # viewed by Web clients. 
  331. #
  332. <Files ~ "^\.ht">
  333.     Order allow,deny
  334.     Deny from all
  335. </Files>
  336.  
  337. #
  338. # TypesConfig describes where the mime.types file (or equivalent) is
  339. # to be found.
  340. #
  341. TypesConfig conf/mime.types
  342.  
  343. #
  344. # DefaultType is the default MIME type the server will use for a document
  345. # if it cannot otherwise determine one, such as from filename extensions.
  346. # If your server contains mostly text or HTML documents, "text/plain" is
  347. # a good value.  If most of your content is binary, such as applications
  348. # or images, you may want to use "application/octet-stream" instead to
  349. # keep browsers from trying to display binary files as though they are
  350. # text.
  351. #
  352. DefaultType text/plain
  353.  
  354. #
  355. # The mod_mime_magic module allows the server to use various hints from the
  356. # contents of the file itself to determine its type.  The MIMEMagicFile
  357. # directive tells the module where the hint definitions are located.
  358. #
  359. <IfModule mod_mime_magic.c>
  360.     MIMEMagicFile conf/magic
  361. </IfModule>
  362.  
  363. #
  364. # HostnameLookups: Log the names of clients or just their IP addresses
  365. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  366. # The default is off because it'd be overall better for the net if people
  367. # had to knowingly turn this feature on, since enabling it means that
  368. # each client request will result in AT LEAST one lookup request to the
  369. # nameserver.
  370. #
  371. HostnameLookups Off
  372.  
  373. #
  374. # ErrorLog: The location of the error log file.
  375. # If you do not specify an ErrorLog directive within a <VirtualHost>
  376. # container, error messages relating to that virtual host will be
  377. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  378. # container, that host's errors will be logged there and not here.
  379. #
  380. ErrorLog logs/error.log
  381.  
  382. #
  383. # LogLevel: Control the number of messages logged to the error.log.
  384. # Possible values include: debug, info, notice, warn, error, crit,
  385. # alert, emerg.
  386. #
  387. LogLevel warn
  388.  
  389. #
  390. # The following directives define some format nicknames for use with
  391. # a CustomLog directive (see below).
  392. #
  393. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  394. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  395. LogFormat "%{Referer}i -> %U" referer
  396. LogFormat "%{User-agent}i" agent
  397.  
  398. #
  399. # The location and format of the access logfile (Common Logfile Format).
  400. # If you do not define any access logfiles within a <VirtualHost>
  401. # container, they will be logged here.  Contrariwise, if you *do*
  402. # define per-<VirtualHost> access logfiles, transactions will be
  403. # logged therein and *not* in this file.
  404. #
  405. CustomLog logs/access.log common
  406.  
  407. #
  408. # If you would like to have agent and referer logfiles, uncomment the
  409. # following directives.
  410. #
  411. #CustomLog logs/referer.log referer
  412. #CustomLog logs/agent.log agent
  413.  
  414. #
  415. # If you prefer a single logfile with access, agent, and referer information
  416. # (Combined Logfile Format) you can use the following directive.
  417. #
  418. #CustomLog logs/access.log combined
  419.  
  420. #
  421. # Optionally add a line containing the server version and virtual host
  422. # name to server-generated pages (error documents, FTP directory listings,
  423. # mod_status and mod_info output etc., but not CGI generated documents).
  424. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  425. # Set to one of:  On | Off | EMail
  426. #
  427. ServerSignature On
  428.  
  429. #
  430. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  431. # Alias fakename realname
  432. #
  433. # Note that if you include a trailing / on fakename then the server will
  434. # require it to be present in the URL.  So "/icons" isn't aliased in this
  435. # example, only "/icons/".  If the fakename is slash-terminated, then the 
  436. # realname must also be slash terminated, and if the fakename omits the 
  437. # trailing slash, the realname must also omit it.
  438. #
  439. # We include the /icons/ alias for FancyIndexed directory listings.  If you
  440. # do not use FancyIndexing, you may comment this out.
  441. #
  442. Alias /icons/ "@@ServerRoot@@/icons/"
  443.  
  444. <Directory "@@ServerRoot@@/icons">
  445.     Options Indexes MultiViews
  446.     AllowOverride None
  447.     Order allow,deny
  448.     Allow from all
  449. </Directory>
  450.  
  451. #
  452. # This should be changed to the ServerRoot/manual/.  The alias provides
  453. # the manual, even if you choose to move your DocumentRoot.  You may comment
  454. # this out if you do not care for the documentation.
  455. #
  456. Alias /manual "@@ServerRoot@@/manual"
  457.  
  458. <Directory "@@ServerRoot@@/manual">
  459.     Options Indexes FollowSymLinks MultiViews IncludesNoExec
  460.     AddOutputFilter Includes html
  461.     AllowOverride None
  462.     Order allow,deny
  463.     Allow from all
  464. </Directory>
  465.  
  466. #
  467. # ScriptAlias: This controls which directories contain server scripts.
  468. # ScriptAliases are essentially the same as Aliases, except that
  469. # documents in the realname directory are treated as applications and
  470. # run by the server when requested rather than as documents sent to the client.
  471. # The same rules about trailing "/" apply to ScriptAlias directives as to
  472. # Alias.
  473. #
  474. ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  475.  
  476. #
  477. # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
  478. # CGI directory exists, if you have that configured.
  479. #
  480. <Directory "@@ServerRoot@@/cgi-bin">
  481.     AllowOverride None
  482.     Options None
  483.     Order allow,deny
  484.     Allow from all
  485. </Directory>
  486.  
  487. #
  488. # Redirect allows you to tell clients about documents which used to exist in
  489. # your server's namespace, but do not anymore. This allows you to tell the
  490. # clients where to look for the relocated document.
  491. # Example:
  492. # Redirect permanent /foo http://www.example.com/bar
  493.  
  494. #
  495. # Directives controlling the display of server-generated directory listings.
  496. #
  497.  
  498. #
  499. # FancyIndexing is whether you want fancy directory indexing or standard.
  500. # VersionSort is whether files containing version numbers should be 
  501. # compared in the natural way, so that `apache-1.3.9.tar' is placed before
  502. # `apache-1.3.12.tar'.
  503. #
  504. IndexOptions FancyIndexing VersionSort
  505.  
  506. #
  507. # AddIcon* directives tell the server which icon to show for different
  508. # files or filename extensions.  These are only displayed for
  509. # FancyIndexed directories.
  510. #
  511. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  512.  
  513. AddIconByType (TXT,/icons/text.gif) text/*
  514. AddIconByType (IMG,/icons/image2.gif) image/*
  515. AddIconByType (SND,/icons/sound2.gif) audio/*
  516. AddIconByType (VID,/icons/movie.gif) video/*
  517.  
  518. AddIcon /icons/binary.gif .bin .exe
  519. AddIcon /icons/binhex.gif .hqx
  520. AddIcon /icons/tar.gif .tar
  521. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  522. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  523. AddIcon /icons/a.gif .ps .ai .eps
  524. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  525. AddIcon /icons/text.gif .txt
  526. AddIcon /icons/c.gif .c
  527. AddIcon /icons/p.gif .pl .py
  528. AddIcon /icons/f.gif .for
  529. AddIcon /icons/dvi.gif .dvi
  530. AddIcon /icons/uuencoded.gif .uu
  531. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  532. AddIcon /icons/tex.gif .tex
  533. AddIcon /icons/bomb.gif core
  534.  
  535. AddIcon /icons/back.gif ..
  536. AddIcon /icons/hand.right.gif README
  537. AddIcon /icons/folder.gif ^^DIRECTORY^^
  538. AddIcon /icons/blank.gif ^^BLANKICON^^
  539.  
  540. #
  541. # DefaultIcon is which icon to show for files which do not have an icon
  542. # explicitly set.
  543. #
  544. DefaultIcon /icons/unknown.gif
  545.  
  546. #
  547. # AddDescription allows you to place a short description after a file in
  548. # server-generated indexes.  These are only displayed for FancyIndexed
  549. # directories.
  550. # Format: AddDescription "description" filename
  551. #
  552. #AddDescription "GZIP compressed document" .gz
  553. #AddDescription "tar archive" .tar
  554. #AddDescription "GZIP compressed tar archive" .tgz
  555.  
  556. #
  557. # ReadmeName is the name of the README file the server will look for by
  558. # default, and append to directory listings.
  559. #
  560. # HeaderName is the name of a file which should be prepended to
  561. # directory indexes. 
  562. ReadmeName README.html
  563. HeaderName HEADER.html
  564.  
  565. #
  566. # IndexIgnore is a set of filenames which directory indexing should ignore
  567. # and not include in the listing.  Shell-style wildcarding is permitted.
  568. #
  569. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  570.  
  571. #
  572. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  573. # information on the fly. Note: Not all browsers support this.
  574. # Despite the name similarity, the following Add* directives have nothing
  575. # to do with the FancyIndexing customization directives above.
  576. #
  577. AddEncoding x-compress Z
  578. AddEncoding x-gzip gz tgz
  579.  
  580. #
  581. # DefaultLanguage and AddLanguage allows you to specify the language of 
  582. # a document. You can then use content negotiation to give a browser a 
  583. # file in a language the user can understand.
  584. #
  585. # Specify a default language. This means that all data
  586. # going out without a specific language tag (see below) will 
  587. # be marked with this one. You probably do NOT want to set
  588. # this unless you are sure it is correct for all cases.
  589. #
  590. # * It is generally better to not mark a page as 
  591. # * being a certain language than marking it with the wrong
  592. # * language!
  593. #
  594. # DefaultLanguage nl
  595. #
  596. # Note 1: The suffix does not have to be the same as the language
  597. # keyword --- those with documents in Polish (whose net-standard
  598. # language code is pl) may wish to use "AddLanguage pl .po" to
  599. # avoid the ambiguity with the common suffix for perl scripts.
  600. #
  601. # Note 2: The example entries below illustrate that in some cases 
  602. # the two character 'Language' abbreviation is not identical to 
  603. # the two character 'Country' code for its country,
  604. # E.g. 'Danmark/dk' versus 'Danish/da'.
  605. #
  606. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  607. # specifier. There is 'work in progress' to fix this and get
  608. # the reference data for rfc1766 cleaned up.
  609. #
  610. # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
  611. # French (fr) - German (de) - Greek-Modern (el)
  612. # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
  613. # Portugese (pt) - Luxembourgeois* (ltz)
  614. # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  615. # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  616. # Russian (ru) - Croatian (hr)
  617. #
  618. AddLanguage da .dk
  619. AddLanguage nl .nl
  620. AddLanguage en .en
  621. AddLanguage et .et
  622. AddLanguage fr .fr
  623. AddLanguage de .de
  624. AddLanguage he .he
  625. AddLanguage el .el
  626. AddLanguage it .it
  627. AddLanguage ja .ja
  628. AddLanguage pl .po
  629. AddLanguage ko .ko
  630. AddLanguage pt .pt
  631. AddLanguage nn .nn
  632. AddLanguage no .no
  633. AddLanguage pt-br .pt-br
  634. AddLanguage ltz .ltz
  635. AddLanguage ca .ca
  636. AddLanguage es .es
  637. AddLanguage sv .se
  638. AddLanguage cz .cz
  639. AddLanguage ru .ru
  640. AddLanguage tw .tw
  641. AddLanguage zh-tw .tw
  642. AddLanguage hr .hr
  643.  
  644. #
  645. # LanguagePriority allows you to give precedence to some languages
  646. # in case of a tie during content negotiation.
  647. #
  648. # Just list the languages in decreasing order of preference. We have
  649. # more or less alphabetized them here. You probably want to change this.
  650. #
  651. LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
  652.  
  653. #
  654. # ForceLanguagePriority allows you to serve a result page rather than
  655. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  656. # [in case no accepted languages matched the available variants]
  657. #
  658. ForceLanguagePriority Prefer Fallback
  659.  
  660. #
  661. # Specify a default charset for all pages sent out. This is
  662. # always a good idea and opens the door for future internationalisation
  663. # of your web site, should you ever want it. Specifying it as
  664. # a default does little harm; as the standard dictates that a page
  665. # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  666. # are merely stating the obvious. There are also some security
  667. # reasons in browsers, related to javascript and URL parsing
  668. # which encourage you to always set a default char set.
  669. #
  670. AddDefaultCharset ISO-8859-1
  671.  
  672. #
  673. # Commonly used filename extensions to character sets. You probably
  674. # want to avoid clashes with the language extensions, unless you
  675. # are good at carefully testing your setup after each change.
  676. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
  677. # the official list of charset names and their respective RFCs
  678. #
  679. AddCharset ISO-8859-1  .iso8859-1 .latin1
  680. AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
  681. AddCharset ISO-8859-3  .iso8859-3 .latin3
  682. AddCharset ISO-8859-4  .iso8859-4 .latin4
  683. AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
  684. AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
  685. AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
  686. AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
  687. AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
  688. AddCharset ISO-2022-JP .iso2022-jp .jis
  689. AddCharset ISO-2022-KR .iso2022-kr .kis
  690. AddCharset ISO-2022-CN .iso2022-cn .cis
  691. AddCharset Big5        .Big5       .big5
  692. # For russian, more than one charset is used (depends on client, mostly):
  693. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  694. AddCharset CP866       .cp866
  695. AddCharset KOI8-r      .koi8-r .koi8-ru
  696. AddCharset KOI8-ru     .koi8-uk .ua
  697. AddCharset ISO-10646-UCS-2 .ucs2
  698. AddCharset ISO-10646-UCS-4 .ucs4
  699. AddCharset UTF-8       .utf8
  700.  
  701. # The set below does not map to a specific (iso) standard
  702. # but works on a fairly wide range of browsers. Note that
  703. # capitalization actually matters (it should not, but it
  704. # does for some browsers).
  705. #
  706. # See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets
  707. # for a list of sorts. But browsers support few.
  708. #
  709. AddCharset GB2312      .gb2312 .gb 
  710. AddCharset utf-7       .utf7
  711. AddCharset utf-8       .utf8
  712. AddCharset big5        .big5 .b5
  713. AddCharset EUC-TW      .euc-tw
  714. AddCharset EUC-JP      .euc-jp
  715. AddCharset EUC-KR      .euc-kr
  716. AddCharset shift_jis   .sjis
  717.  
  718. #
  719. # AddType allows you to add to or override the MIME configuration
  720. # file mime.types for specific file types.
  721. #
  722. AddType application/x-tar .tgz
  723.  
  724. #
  725. # AddHandler allows you to map certain file extensions to "handlers":
  726. # actions unrelated to filetype. These can be either built into the server
  727. # or added with the Action directive (see below)
  728. #
  729. # To use CGI scripts outside of ScriptAliased directories:
  730. # (You will also need to add "ExecCGI" to the "Options" directive.)
  731. #
  732. #AddHandler cgi-script .cgi
  733.  
  734. #
  735. # For files that include their own HTTP headers:
  736. #
  737. #AddHandler send-as-is asis
  738.  
  739. #
  740. # For server-parsed imagemap files:
  741. #
  742. #AddHandler imap-file map
  743.  
  744. #
  745. # For type maps (negotiated resources):
  746. # (This is enabled by default to allow the Apache "It Worked" page
  747. #  to be distributed in multiple languages.)
  748. #
  749. AddHandler type-map var
  750.  
  751. # Filters allow you to process content before it is sent to the client.
  752. #
  753. # To parse .shtml files for server-side includes (SSI):
  754. # (You will also need to add "Includes" to the "Options" directive.)
  755. #
  756. #AddOutputFilter INCLUDES .shtml
  757.  
  758. #
  759. # Action lets you define media types that will execute a script whenever
  760. # a matching file is called. This eliminates the need for repeated URL
  761. # pathnames for oft-used CGI file processors.
  762. # Format: Action media/type /cgi-script/location
  763. # Format: Action handler-name /cgi-script/location
  764. #
  765.  
  766. #
  767. # Customizable error responses come in three flavors:
  768. # 1) plain text 2) local redirects 3) external redirects
  769. #
  770. # Some examples:
  771. #ErrorDocument 500 "The server made a boo boo."
  772. #ErrorDocument 404 /missing.html
  773. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  774. #ErrorDocument 402 http://www.example.com/subscription_info.html
  775. #
  776.  
  777. #
  778. # Putting this all together, we can Internationalize error responses.
  779. #
  780. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  781. # our collection of by-error message multi-language collections.  We use 
  782. # includes to substitute the appropriate text.
  783. #
  784. # You can modify the messages' appearance without changing any of the
  785. # default HTTP_<error>.html.var files by adding the line;
  786. #
  787. #   Alias /error/include/ "/your/include/path/"
  788. #
  789. # which allows you to create your own set of files by starting with the
  790. # @@ServerRoot@@/error/include/ files and
  791. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  792. #
  793.  
  794. <IfModule mod_negotiation.c>
  795. <IfModule mod_include.c>
  796.     Alias /error/ "@@ServerRoot@@/error/"
  797.  
  798.     <Directory "@@ServerRoot@@/error">
  799.         AllowOverride None
  800.         Options IncludesNoExec
  801.         AddOutputFilter Includes html
  802.         AddHandler type-map var
  803.         Order allow,deny
  804.         Allow from all
  805.         LanguagePriority en es de fr
  806.         ForceLanguagePriority Prefer Fallback
  807.     </Directory>
  808.  
  809.     ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  810.     ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  811.     ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  812.     ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  813.     ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  814.     ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  815.     ErrorDocument 410 /error/HTTP_GONE.html.var
  816.     ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  817.     ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  818.     ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  819.     ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  820.     ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  821.     ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  822.     ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  823.     ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  824.     ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  825.     ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  826.  
  827. </IfModule>
  828. </IfModule>
  829.  
  830. #
  831. # The following directives modify normal HTTP response behavior to
  832. # handle known problems with browser implementations.
  833. #
  834. BrowserMatch "Mozilla/2" nokeepalive
  835. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  836. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  837. BrowserMatch "Java/1\.0" force-response-1.0
  838. BrowserMatch "JDK/1\.0" force-response-1.0
  839.  
  840. #
  841. # The following directive disables redirects on non-GET requests for
  842. # a directory that does not include the trailing slash.  This fixes a 
  843. # problem with Microsoft WebFolders which does not appropriately handle 
  844. # redirects for folders with DAV methods.
  845. #
  846. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  847. BrowserMatch "^WebDrive" redirect-carefully
  848.  
  849. #
  850. # Allow server status reports, with the URL of http://servername/server-status
  851. # Change the ".@@DomainName@@" to match your domain to enable.
  852. #
  853. #<Location /server-status>
  854. #    SetHandler server-status
  855. #    Order deny,allow
  856. #    Deny from all
  857. #    Allow from .@@DomainName@@
  858. #</Location>
  859.  
  860. #
  861. # Allow remote server configuration reports, with the URL of
  862. #  http://servername/server-info (requires that mod_info.c be loaded).
  863. # Change the ".your-domain.com" to match your domain to enable.
  864. #
  865. #<Location /server-info>
  866. #    SetHandler server-info
  867. #    Order deny,allow
  868. #    Deny from all
  869. #    Allow from .@@DomainName@@
  870. #</Location>
  871.  
  872. #
  873. # Proxy Server directives. Uncomment the following lines to
  874. # enable the proxy server:
  875. #
  876. #<IfModule mod_proxy.c>
  877. #ProxyRequests On
  878. #
  879. #<Proxy *>
  880. #    Order deny,allow
  881. #    Deny from all
  882. #    Allow from .your-domain.com
  883. #</Proxy>
  884.  
  885. #
  886. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  887. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  888. # Set to one of: Off | On | Full | Block
  889. #
  890. #ProxyVia On
  891.  
  892. #
  893. # To enable the cache as well, edit and uncomment the following lines:
  894. # (no cacheing without CacheRoot)
  895. #
  896. #CacheRoot "@@ServerRoot@@/proxy"
  897. #CacheSize 5
  898. #CacheGcInterval 4
  899. #CacheMaxExpire 24
  900. #CacheLastModifiedFactor 0.1
  901. #CacheDefaultExpire 1
  902. #NoCache a-domain.com another-domain.edu joes.garage-sale.com
  903.  
  904. #</IfModule>
  905. # End of proxy directives.
  906.  
  907. #
  908. # Bring in additional module-specific configurations
  909. #
  910. <IfModule mod_ssl.c>
  911.     Include conf/ssl.conf
  912. </IfModule>
  913.  
  914.  
  915. ### Section 3: Virtual Hosts
  916. #
  917. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  918. # machine you can setup VirtualHost containers for them. Most configurations
  919. # use only name-based virtual hosts so the server doesn't need to worry about
  920. # IP addresses. This is indicated by the asterisks in the directives below.
  921. #
  922. # Please see the documentation at 
  923. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  924. # for further details before you try to setup virtual hosts.
  925. #
  926. # You may use the command line option '-S' to verify your virtual host
  927. # configuration.
  928.  
  929. #
  930. # Use name-based virtual hosting.
  931. #
  932. #NameVirtualHost *
  933.  
  934. #
  935. # VirtualHost example:
  936. # Almost any Apache directive may go into a VirtualHost container.
  937. # The first VirtualHost section is used for requests without a known
  938. # server name.
  939. #
  940. #<VirtualHost *>
  941. #    ServerAdmin webmaster@dummy-host.example.com
  942. #    DocumentRoot /www/docs/dummy-host.example.com
  943. #    ServerName dummy-host.example.com
  944. #    ErrorLog logs/dummy-host.example.com-error_log
  945. #    CustomLog logs/dummy-host.example.com-access_log common
  946. #</VirtualHost>
  947.