bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / docs / conf / httpd-win.conf
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 "@@ServerRoot@@" will be interpreted by the
29 # server as "@@ServerRoot@@/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 (available
52 # at <URL:http://httpd.apache.org/docs/2.0/mod/mpm_common.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, instead of 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.  On Windows NT, "Personal/My Website"
288 # is a more appropriate choice.
289 #
290 UserDir "My Documents/My Website"
291
292 #
293 # Control access to UserDir directories.  The following is an example
294 # for a site where these directories are restricted to read-only.
295 #
296 # You must correct the path for the root to match your system's configured
297 # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
298 # or whichever, as appropriate.
299 #
300 #<Directory "C:/Documents and Settings/*/My Documents/My Website">
301 #    AllowOverride FileInfo AuthConfig Limit
302 #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
303 #    <Limit GET POST OPTIONS PROPFIND>
304 #        Order allow,deny
305 #        Allow from all
306 #    </Limit>
307 #    <LimitExcept GET POST OPTIONS PROPFIND>
308 #        Order deny,allow
309 #        Deny from all
310 #    </LimitExcept>
311 #</Directory>
312
313 #
314 # DirectoryIndex: sets the file that Apache will serve if a directory
315 # is requested.
316 #
317 # The index.html.var file (a type-map) is used to deliver content-
318 # negotiated documents.  The MultiViews Option can be used for the 
319 # same purpose, but it is much slower.
320 #
321 DirectoryIndex index.html index.html.var
322
323 #
324 # AccessFileName: The name of the file to look for in each directory
325 # for additional configuration directives.  See also the AllowOverride 
326 # directive.
327 #
328 AccessFileName .htaccess
329
330 #
331 # The following lines prevent .htaccess and .htpasswd files from being 
332 # viewed by Web clients. 
333 #
334 <FilesMatch "^\.ht">
335     Order allow,deny
336     Deny from all
337 </FilesMatch>
338
339 #
340 # TypesConfig describes where the mime.types file (or equivalent) is
341 # to be found.
342 #
343 TypesConfig conf/mime.types
344
345 #
346 # DefaultType is the default MIME type the server will use for a document
347 # if it cannot otherwise determine one, such as from filename extensions.
348 # If your server contains mostly text or HTML documents, "text/plain" is
349 # a good value.  If most of your content is binary, such as applications
350 # or images, you may want to use "application/octet-stream" instead to
351 # keep browsers from trying to display binary files as though they are
352 # text.
353 #
354 DefaultType text/plain
355
356 #
357 # The mod_mime_magic module allows the server to use various hints from the
358 # contents of the file itself to determine its type.  The MIMEMagicFile
359 # directive tells the module where the hint definitions are located.
360 #
361 <IfModule mod_mime_magic.c>
362     MIMEMagicFile conf/magic
363 </IfModule>
364
365 #
366 # HostnameLookups: Log the names of clients or just their IP addresses
367 # e.g., www.apache.org (on) or 204.62.129.132 (off).
368 # The default is off because it'd be overall better for the net if people
369 # had to knowingly turn this feature on, since enabling it means that
370 # each client request will result in AT LEAST one lookup request to the
371 # nameserver.
372 #
373 HostnameLookups Off
374
375 #
376 # EnableMMAP: Control whether memory-mapping is used to deliver
377 # files (assuming that the underlying OS supports it).
378 # The default is on; turn this off if you serve from NFS-mounted 
379 # filesystems.  On some systems, turning it off (regardless of
380 # filesystem) can improve performance; for details, please see
381 # http://httpd.apache.org/docs/2.0/mod/core.html#enablemmap
382 #
383 #EnableMMAP off
384
385 #
386 # EnableSendfile: Control whether the sendfile kernel support is 
387 # used  to deliver files (assuming that the OS supports it).
388 # The default is on; turn this off if you serve from NFS-mounted 
389 # filesystems.  Please see
390 # http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile
391 #
392 #EnableSendfile off
393
394 #
395 # ErrorLog: The location of the error log file.
396 # If you do not specify an ErrorLog directive within a <VirtualHost>
397 # container, error messages relating to that virtual host will be
398 # logged here.  If you *do* define an error logfile for a <VirtualHost>
399 # container, that host's errors will be logged there and not here.
400 #
401 ErrorLog logs/error.log
402
403 #
404 # LogLevel: Control the number of messages logged to the error.log.
405 # Possible values include: debug, info, notice, warn, error, crit,
406 # alert, emerg.
407 #
408 LogLevel warn
409
410 #
411 # The following directives define some format nicknames for use with
412 # a CustomLog directive (see below).
413 #
414 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
415 LogFormat "%h %l %u %t \"%r\" %>s %b" common
416 LogFormat "%{Referer}i -> %U" referer
417 LogFormat "%{User-agent}i" agent
418
419 # You need to enable mod_logio.c to use %I and %O
420 #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
421
422 #
423 # The location and format of the access logfile (Common Logfile Format).
424 # If you do not define any access logfiles within a <VirtualHost>
425 # container, they will be logged here.  Contrariwise, if you *do*
426 # define per-<VirtualHost> access logfiles, transactions will be
427 # logged therein and *not* in this file.
428 #
429 CustomLog logs/access.log common
430
431 #
432 # If you would like to have agent and referer logfiles, uncomment the
433 # following directives.
434 #
435 #CustomLog logs/referer.log referer
436 #CustomLog logs/agent.log agent
437
438 #
439 # If you prefer a single logfile with access, agent, and referer information
440 # (Combined Logfile Format) you can use the following directive.
441 #
442 #CustomLog logs/access.log combined
443
444 #
445 # ServerTokens
446 # This directive configures what you return as the Server HTTP response
447 # Header. The default is 'Full' which sends information about the OS-Type
448 # and compiled in modules.
449 # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
450 # where Full conveys the most information, and Prod the least.
451 #
452 ServerTokens Full
453
454 #
455 # Optionally add a line containing the server version and virtual host
456 # name to server-generated pages (internal error documents, FTP directory 
457 # listings, mod_status and mod_info output etc., but not CGI generated 
458 # documents or custom error documents).
459 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
460 # Set to one of:  On | Off | EMail
461 #
462 ServerSignature On
463
464 #
465 # Aliases: Add here as many aliases as you need (with no limit). The format is 
466 # Alias fakename realname
467 #
468 # Note that if you include a trailing / on fakename then the server will
469 # require it to be present in the URL.  So "/icons" isn't aliased in this
470 # example, only "/icons/".  If the fakename is slash-terminated, then the 
471 # realname must also be slash terminated, and if the fakename omits the 
472 # trailing slash, the realname must also omit it.
473 #
474 # We include the /icons/ alias for FancyIndexed directory listings.  If you
475 # do not use FancyIndexing, you may comment this out.
476 #
477 Alias /icons/ "@@ServerRoot@@/icons/"
478
479 <Directory "@@ServerRoot@@/icons">
480     Options Indexes MultiViews
481     AllowOverride None
482     Order allow,deny
483     Allow from all
484 </Directory>
485
486 #
487 # This should be changed to the ServerRoot/manual/.  The alias provides
488 # the manual, even if you choose to move your DocumentRoot.  You may comment
489 # this out if you do not care for the documentation.
490 #
491 AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru|tr))?(/.*)?$ "@@ServerRoot@@/manual$1"
492
493 <Directory "@@ServerRoot@@/manual">
494     Options Indexes
495     AllowOverride None
496     Order allow,deny
497     Allow from all
498
499     <Files *.html>
500         SetHandler type-map
501     </Files>
502     # .tr is text/troff in mime.types!
503     <Files *.html.tr.utf8>
504         ForceType text/html
505     </Files>
506
507     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru|tr)/ prefer-language=$1
508     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru|tr)){2,}(/.*)?$ /manual/$1$2
509 </Directory>
510
511 #
512 # ScriptAlias: This controls which directories contain server scripts.
513 # ScriptAliases are essentially the same as Aliases, except that
514 # documents in the realname directory are treated as applications and
515 # run by the server when requested rather than as documents sent to the client.
516 # The same rules about trailing "/" apply to ScriptAlias directives as to
517 # Alias.
518 #
519 ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
520
521 #
522 # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
523 # CGI directory exists, if you have that configured.
524 #
525 <Directory "@@ServerRoot@@/cgi-bin">
526     AllowOverride None
527     Options None
528     Order allow,deny
529     Allow from all
530 </Directory>
531
532 #
533 # Redirect allows you to tell clients about documents which used to exist in
534 # your server's namespace, but do not anymore. This allows you to tell the
535 # clients where to look for the relocated document.
536 # Example:
537 # Redirect permanent /foo http://www.example.com/bar
538
539 #
540 # Directives controlling the display of server-generated directory listings.
541 #
542
543 #
544 # IndexOptions: Controls the appearance of server-generated directory
545 # listings.
546 #
547 IndexOptions FancyIndexing VersionSort
548
549 #
550 # AddIcon* directives tell the server which icon to show for different
551 # files or filename extensions.  These are only displayed for
552 # FancyIndexed directories.
553 #
554 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
555
556 AddIconByType (TXT,/icons/text.gif) text/*
557 AddIconByType (IMG,/icons/image2.gif) image/*
558 AddIconByType (SND,/icons/sound2.gif) audio/*
559 AddIconByType (VID,/icons/movie.gif) video/*
560
561 AddIcon /icons/binary.gif .bin .exe
562 AddIcon /icons/binhex.gif .hqx
563 AddIcon /icons/tar.gif .tar
564 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
565 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
566 AddIcon /icons/a.gif .ps .ai .eps
567 AddIcon /icons/layout.gif .html .shtml .htm .pdf
568 AddIcon /icons/text.gif .txt
569 AddIcon /icons/c.gif .c
570 AddIcon /icons/p.gif .pl .py
571 AddIcon /icons/f.gif .for
572 AddIcon /icons/dvi.gif .dvi
573 AddIcon /icons/uuencoded.gif .uu
574 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
575 AddIcon /icons/tex.gif .tex
576 AddIcon /icons/bomb.gif core
577
578 AddIcon /icons/back.gif ..
579 AddIcon /icons/hand.right.gif README
580 AddIcon /icons/folder.gif ^^DIRECTORY^^
581 AddIcon /icons/blank.gif ^^BLANKICON^^
582
583 #
584 # DefaultIcon is which icon to show for files which do not have an icon
585 # explicitly set.
586 #
587 DefaultIcon /icons/unknown.gif
588
589 #
590 # AddDescription allows you to place a short description after a file in
591 # server-generated indexes.  These are only displayed for FancyIndexed
592 # directories.
593 # Format: AddDescription "description" filename
594 #
595 #AddDescription "GZIP compressed document" .gz
596 #AddDescription "tar archive" .tar
597 #AddDescription "GZIP compressed tar archive" .tgz
598
599 #
600 # ReadmeName is the name of the README file the server will look for by
601 # default, and append to directory listings.
602 #
603 # HeaderName is the name of a file which should be prepended to
604 # directory indexes. 
605 ReadmeName README.html
606 HeaderName HEADER.html
607
608 #
609 # IndexIgnore is a set of filenames which directory indexing should ignore
610 # and not include in the listing.  Shell-style wildcarding is permitted.
611 #
612 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
613
614 #
615 # DefaultLanguage and AddLanguage allows you to specify the language of 
616 # a document. You can then use content negotiation to give a browser a 
617 # file in a language the user can understand.
618 #
619 # Specify a default language. This means that all data
620 # going out without a specific language tag (see below) will 
621 # be marked with this one. You probably do NOT want to set
622 # this unless you are sure it is correct for all cases.
623 #
624 # * It is generally better to not mark a page as 
625 # * being a certain language than marking it with the wrong
626 # * language!
627 #
628 # DefaultLanguage nl
629 #
630 # Note 1: The suffix does not have to be the same as the language
631 # keyword --- those with documents in Polish (whose net-standard
632 # language code is pl) may wish to use "AddLanguage pl .po" to
633 # avoid the ambiguity with the common suffix for perl scripts.
634 #
635 # Note 2: The example entries below illustrate that in some cases 
636 # the two character 'Language' abbreviation is not identical to 
637 # the two character 'Country' code for its country,
638 # E.g. 'Danmark/dk' versus 'Danish/da'.
639 #
640 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
641 # specifier. There is 'work in progress' to fix this and get
642 # the reference data for rfc1766 cleaned up.
643 #
644 # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
645 # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
646 # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
647 # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
648 # Norwegian (no) - Polish (pl) - Portugese (pt)
649 # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
650 # Turkish (tr) - Simplified Chinese (zh-CN) - Spanish (es)
651 # Traditional Chinese (zh-TW)
652 #
653 AddLanguage ca .ca
654 AddLanguage cs .cz .cs
655 AddLanguage da .dk
656 AddLanguage de .de
657 AddLanguage el .el
658 AddLanguage en .en
659 AddLanguage eo .eo
660 AddLanguage es .es
661 AddLanguage et .et
662 AddLanguage fr .fr
663 AddLanguage he .he
664 AddLanguage hr .hr
665 AddLanguage it .it
666 AddLanguage ja .ja
667 AddLanguage ko .ko
668 AddLanguage ltz .ltz
669 AddLanguage nl .nl
670 AddLanguage nn .nn
671 AddLanguage no .no
672 AddLanguage pl .po
673 AddLanguage pt .pt
674 AddLanguage pt-BR .pt-br
675 AddLanguage ru .ru
676 AddLanguage sv .sv
677 AddLanguage tr .tr
678 AddLanguage zh-CN .zh-cn
679 AddLanguage zh-TW .zh-tw
680
681 #
682 # LanguagePriority allows you to give precedence to some languages
683 # in case of a tie during content negotiation.
684 #
685 # Just list the languages in decreasing order of preference. We have
686 # more or less alphabetized them here. You probably want to change this.
687 #
688 LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
689
690 #
691 # ForceLanguagePriority allows you to serve a result page rather than
692 # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
693 # [in case no accepted languages matched the available variants]
694 #
695 ForceLanguagePriority Prefer Fallback
696
697 #
698 # Commonly used filename extensions to character sets. You probably
699 # want to avoid clashes with the language extensions, unless you
700 # are good at carefully testing your setup after each change.
701 # See http://www.iana.org/assignments/character-sets for the
702 # official list of charset names and their respective RFCs.
703 #
704 AddCharset ISO-8859-1  .iso8859-1 .latin1
705 AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
706 AddCharset ISO-8859-3  .iso8859-3 .latin3
707 AddCharset ISO-8859-4  .iso8859-4 .latin4
708 AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
709 AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
710 AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
711 AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
712 AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
713 AddCharset ISO-2022-JP .iso2022-jp .jis
714 AddCharset ISO-2022-KR .iso2022-kr .kis
715 AddCharset ISO-2022-CN .iso2022-cn .cis
716 AddCharset Big5        .Big5       .big5
717 # For russian, more than one charset is used (depends on client, mostly):
718 AddCharset WINDOWS-1251 .cp-1251   .win-1251
719 AddCharset CP866       .cp866
720 AddCharset KOI8-r      .koi8-r .koi8-ru
721 AddCharset KOI8-ru     .koi8-uk .ua
722 AddCharset ISO-10646-UCS-2 .ucs2
723 AddCharset ISO-10646-UCS-4 .ucs4
724 AddCharset UTF-8       .utf8
725
726 # The set below does not map to a specific (iso) standard
727 # but works on a fairly wide range of browsers. Note that
728 # capitalization actually matters (it should not, but it
729 # does for some browsers).
730 #
731 # See http://www.iana.org/assignments/character-sets
732 # for a list of sorts. But browsers support few.
733 #
734 AddCharset GB2312      .gb2312 .gb 
735 AddCharset utf-7       .utf7
736 AddCharset utf-8       .utf8
737 AddCharset big5        .big5 .b5
738 AddCharset EUC-TW      .euc-tw
739 AddCharset EUC-JP      .euc-jp
740 AddCharset EUC-KR      .euc-kr
741 AddCharset shift_jis   .sjis
742
743 #
744 # AddType allows you to add to or override the MIME configuration
745 # file mime.types for specific file types.
746 #
747 #AddType application/x-tar .tgz
748 #
749 # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
750 # information on the fly. Note: Not all browsers support this.
751 # Despite the name similarity, the following Add* directives have nothing
752 # to do with the FancyIndexing customization directives above.
753 #
754 #AddEncoding x-compress .Z
755 #AddEncoding x-gzip .gz .tgz
756 #
757 # If the AddEncoding directives above are commented-out, then you
758 # probably should define those extensions to indicate media types:
759 #
760 AddType application/x-compress .Z
761 AddType application/x-gzip .gz .tgz
762
763 #
764 # AddHandler allows you to map certain file extensions to "handlers":
765 # actions unrelated to filetype. These can be either built into the server
766 # or added with the Action directive (see below)
767 #
768 # To use CGI scripts outside of ScriptAliased directories:
769 # (You will also need to add "ExecCGI" to the "Options" directive.)
770 #
771 #AddHandler cgi-script .cgi
772
773 #
774 # For files that include their own HTTP headers:
775 #
776 #AddHandler send-as-is asis
777
778 #
779 # For server-parsed imagemap files:
780 #
781 #AddHandler imap-file map
782
783 #
784 # For type maps (negotiated resources):
785 # (This is enabled by default to allow the Apache "It Worked" page
786 #  to be distributed in multiple languages.)
787 #
788 AddHandler type-map var
789
790 #
791 # Filters allow you to process content before it is sent to the client.
792 #
793 # To parse .shtml files for server-side includes (SSI):
794 # (You will also need to add "Includes" to the "Options" directive.)
795 #
796 #AddType text/html .shtml
797 #AddOutputFilter INCLUDES .shtml
798
799 #
800 # Action lets you define media types that will execute a script whenever
801 # a matching file is called. This eliminates the need for repeated URL
802 # pathnames for oft-used CGI file processors.
803 # Format: Action media/type /cgi-script/location
804 # Format: Action handler-name /cgi-script/location
805 #
806
807 #
808 # Customizable error responses come in three flavors:
809 # 1) plain text 2) local redirects 3) external redirects
810 #
811 # Some examples:
812 #ErrorDocument 500 "The server made a boo boo."
813 #ErrorDocument 404 /missing.html
814 #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
815 #ErrorDocument 402 http://www.example.com/subscription_info.html
816 #
817
818 #
819 # Putting this all together, we can internationalize error responses.
820 #
821 # We use Alias to redirect any /error/HTTP_<error>.html.var response to
822 # our collection of by-error message multi-language collections.  We use 
823 # includes to substitute the appropriate text.
824 #
825 # You can modify the messages' appearance without changing any of the
826 # default HTTP_<error>.html.var files by adding the line:
827 #
828 #   Alias /error/include/ "/your/include/path/"
829 #
830 # which allows you to create your own set of files by starting with the
831 # @exp_errordir@/include/ files and copying them to /your/include/path/, 
832 # even on a per-VirtualHost basis.  The default include files will display
833 # your Apache version number and your ServerAdmin email address regardless
834 # of the setting of ServerSignature.
835 #
836 # The internationalized error documents require mod_alias, mod_include
837 # and mod_negotiation.  To activate them, uncomment the following 30 lines.
838
839 #    Alias /error/ "@exp_errordir@/"
840 #
841 #    <Directory "@exp_errordir@">
842 #        AllowOverride None
843 #        Options IncludesNoExec
844 #        AddOutputFilter Includes html
845 #        AddHandler type-map var
846 #        Order allow,deny
847 #        Allow from all
848 #        LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
849 #        ForceLanguagePriority Prefer Fallback
850 #    </Directory>
851 #
852 #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
853 #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
854 #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
855 #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
856 #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
857 #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
858 #    ErrorDocument 410 /error/HTTP_GONE.html.var
859 #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
860 #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
861 #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
862 #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
863 #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
864 #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
865 #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
866 #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
867 #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
868 #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
869
870
871
872 #
873 # The following directives modify normal HTTP response behavior to
874 # handle known problems with browser implementations.
875 #
876 BrowserMatch "Mozilla/2" nokeepalive
877 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
878 BrowserMatch "RealPlayer 4\.0" force-response-1.0
879 BrowserMatch "Java/1\.0" force-response-1.0
880 BrowserMatch "JDK/1\.0" force-response-1.0
881
882 #
883 # The following directive disables redirects on non-GET requests for
884 # a directory that does not include the trailing slash.  This fixes a 
885 # problem with Microsoft WebFolders which does not appropriately handle 
886 # redirects for folders with DAV methods.
887 # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
888 #
889 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
890 BrowserMatch "MS FrontPage" redirect-carefully
891 BrowserMatch "^WebDrive" redirect-carefully
892 BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
893 BrowserMatch "^gnome-vfs" redirect-carefully
894 BrowserMatch "^XML Spy" redirect-carefully
895 BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
896
897 #
898 # Allow server status reports generated by mod_status,
899 # with the URL of http://servername/server-status
900 # Change the ".@@DomainName@@" to match your domain to enable.
901 #
902 #<Location /server-status>
903 #    SetHandler server-status
904 #    Order deny,allow
905 #    Deny from all
906 #    Allow from .@@DomainName@@
907 #</Location>
908
909 #
910 # Allow remote server configuration reports, with the URL of
911 #  http://servername/server-info (requires that mod_info.c be loaded).
912 # Change the ".@@DomainName@@" to match your domain to enable.
913 #
914 #<Location /server-info>
915 #    SetHandler server-info
916 #    Order deny,allow
917 #    Deny from all
918 #    Allow from .@@DomainName@@
919 #</Location>
920
921
922 #
923 # Bring in additional module-specific configurations
924 #
925 <IfModule mod_ssl.c>
926     Include conf/ssl.conf
927 </IfModule>
928
929
930 ### Section 3: Virtual Hosts
931 #
932 # VirtualHost: If you want to maintain multiple domains/hostnames on your
933 # machine you can setup VirtualHost containers for them. Most configurations
934 # use only name-based virtual hosts so the server doesn't need to worry about
935 # IP addresses. This is indicated by the asterisks in the directives below.
936 #
937 # Please see the documentation at 
938 # <URL:http://httpd.apache.org/docs/2.0/vhosts/>
939 # for further details before you try to setup virtual hosts.
940 #
941 # You may use the command line option '-S' to verify your virtual host
942 # configuration.
943
944 #
945 # Use name-based virtual hosting.
946 #
947 #NameVirtualHost *:80
948
949 #
950 # VirtualHost example:
951 # Almost any Apache directive may go into a VirtualHost container.
952 # The first VirtualHost section is used for requests without a known
953 # server name.
954 #
955 #<VirtualHost *:80>
956 #    ServerAdmin webmaster@dummy-host.example.com
957 #    DocumentRoot /www/docs/dummy-host.example.com
958 #    ServerName dummy-host.example.com
959 #    ErrorLog logs/dummy-host.example.com-error_log
960 #    CustomLog logs/dummy-host.example.com-access_log common
961 #</VirtualHost>