]> granicus.if.org Git - apache/blob - docs/conf/httpd-win.conf
Add proxy_ajp and proxy_balancer to the LoadModule list.
[apache] / 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.1/> 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.1/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 actions_module modules/mod_actions.so
135 LoadModule alias_module modules/mod_alias.so
136 LoadModule asis_module modules/mod_asis.so
137 LoadModule auth_basic_module modules/mod_auth_basic.so
138 #LoadModule auth_digest_module modules/mod_auth_digest.so
139 #LoadModule authn_anon_module modules/mod_authn_anon.so
140 #LoadModule authn_dbm_module modules/mod_authn_dbm.so
141 LoadModule authn_default_module modules/mod_authn_default.so
142 LoadModule authn_file_module modules/mod_authn_file.so
143 #LoadModule authz_dbm_module modules/mod_authz_dbm.so
144 LoadModule authz_default_module modules/mod_authz_default.so
145 LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
146 LoadModule authz_host_module modules/mod_authz_host.so
147 LoadModule authz_user_module modules/mod_authz_user.so
148 LoadModule autoindex_module modules/mod_autoindex.so
149 #LoadModule cern_meta_module modules/mod_cern_meta.so
150 LoadModule cgi_module modules/mod_cgi.so
151 #LoadModule dav_module modules/mod_dav.so
152 #LoadModule dav_fs_module modules/mod_dav_fs.so
153 #LoadModule deflate_module modules/mod_deflate.so
154 LoadModule dir_module modules/mod_dir.so
155 LoadModule env_module modules/mod_env.so
156 #LoadModule expires_module modules/mod_expires.so
157 #LoadModule file_cache_module modules/mod_file_cache.so
158 #LoadModule headers_module modules/mod_headers.so
159 LoadModule imap_module modules/mod_imap.so
160 LoadModule include_module modules/mod_include.so
161 #LoadModule info_module modules/mod_info.so
162 LoadModule isapi_module modules/mod_isapi.so
163 LoadModule log_config_module modules/mod_log_config.so
164 LoadModule mime_module modules/mod_mime.so
165 #LoadModule mime_magic_module modules/mod_mime_magic.so
166 #LoadModule proxy_module modules/mod_proxy.so
167 #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
168 #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
169 #LoadModule proxy_connect_module modules/mod_proxy_connect.so
170 #LoadModule proxy_http_module modules/mod_proxy_http.so
171 #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
172 LoadModule negotiation_module modules/mod_negotiation.so
173 #LoadModule rewrite_module modules/mod_rewrite.so
174 LoadModule setenvif_module modules/mod_setenvif.so
175 #LoadModule speling_module modules/mod_speling.so
176 #LoadModule status_module modules/mod_status.so
177 #LoadModule unique_id_module modules/mod_unique_id.so
178 LoadModule userdir_module modules/mod_userdir.so
179 #LoadModule usertrack_module modules/mod_usertrack.so
180 #LoadModule vhost_alias_module modules/mod_vhost_alias.so
181 #LoadModule ssl_module modules/mod_ssl.so
182
183 #
184 # ExtendedStatus controls whether Apache will generate "full" status
185 # information (ExtendedStatus On) or just basic information (ExtendedStatus
186 # Off) when the "server-status" handler is called. The default is Off.
187 #
188 #ExtendedStatus On
189
190 ### Section 2: 'Main' server configuration
191 #
192 # The directives in this section set up the values used by the 'main'
193 # server, which responds to any requests that aren't handled by a
194 # <VirtualHost> definition.  These values also provide defaults for
195 # any <VirtualHost> containers you may define later in the file.
196 #
197 # All of these directives may appear inside <VirtualHost> containers,
198 # in which case these default settings will be overridden for the
199 # virtual host being defined.
200 #
201
202 #
203 # ServerAdmin: Your address, where problems with the server should be
204 # e-mailed.  This address appears on some server-generated pages, such
205 # as error documents.  e.g. admin@your-domain.com
206 #
207 ServerAdmin @@ServerAdmin@@
208
209 #
210 # ServerName gives the name and port that the server uses to identify itself.
211 # This can often be determined automatically, but we recommend you specify
212 # it explicitly to prevent problems during startup.
213 #
214 # If this is not set to valid DNS name for your host, server-generated
215 # redirections will not work.  See also the UseCanonicalName directive.
216 #
217 # If your host doesn't have a registered DNS name, enter its IP address here.
218 # You will have to access it by its address anyway, and this will make 
219 # redirections work in a sensible way.
220 #
221 ServerName @@ServerName@@:@@Port@@
222
223 #
224 # UseCanonicalName: Determines how Apache constructs self-referencing 
225 # URLs and the SERVER_NAME and SERVER_PORT variables.
226 # When set "Off", Apache will use the Hostname and Port supplied
227 # by the client.  When set "On", Apache will use the value of the
228 # ServerName directive.
229 #
230 UseCanonicalName Off
231
232 #
233 # DocumentRoot: The directory out of which you will serve your
234 # documents. By default, all requests are taken from this directory, but
235 # symbolic links and aliases may be used to point to other locations.
236 #
237 DocumentRoot "@@ServerRoot@@/htdocs"
238
239 #
240 # Each directory to which Apache has access can be configured with respect
241 # to which services and features are allowed and/or disabled in that
242 # directory (and its subdirectories). 
243 #
244 # First, we configure the "default" to be a very restrictive set of 
245 # features.  
246 #
247 <Directory />
248     Options FollowSymLinks
249     AllowOverride None
250     Order deny,allow
251     Deny from all
252 </Directory>
253
254 #
255 # Note that from this point forward you must specifically allow
256 # particular features to be enabled - so if something's not working as
257 # you might expect, make sure that you have specifically enabled it
258 # below.
259 #
260
261 #
262 # This should be changed to whatever you set DocumentRoot to.
263 #
264 <Directory "@@ServerRoot@@/htdocs">
265
266 #
267 # Possible values for the Options directive are "None", "All",
268 # or any combination of:
269 #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
270 #
271 # Note that "MultiViews" must be named *explicitly* --- "Options All"
272 # doesn't give it to you.
273 #
274 # The Options directive is both complicated and important.  Please see
275 # http://httpd.apache.org/docs-2.1/mod/core.html#options
276 # for more information.
277 #
278     Options Indexes FollowSymLinks
279
280 #
281 # AllowOverride controls what directives may be placed in .htaccess files.
282 # It can be "All", "None", or any combination of the keywords:
283 #   Options FileInfo AuthConfig Limit
284 #
285     AllowOverride None
286
287 #
288 # Controls who can get stuff from this server.
289 #
290     Order allow,deny
291     Allow from all
292
293 </Directory>
294
295 #
296 # UserDir: The name of the directory that is appended onto a user's home
297 # directory if a ~user request is received.  Be especially careful to use
298 # proper, forward slashes here.  On Windows NT, "Personal/My Website"
299 # is a more appropriate choice.  Note that you must also set the default
300 # access control for these directories, as in the example below.
301 #
302 UserDir "My Documents/My Website"
303
304 #
305 # Control access to UserDir directories.  The following is an example
306 # for a site where these directories are restricted to read-only.
307 #
308 # You must correct the path for the root to match your system's configured
309 # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
310 # or whichever, as appropriate.
311 #
312 #<Directory "C:/Documents and Settings/*/My Documents/My Website">
313 #    AllowOverride FileInfo AuthConfig Limit
314 #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
315 #    <Limit GET POST OPTIONS PROPFIND>
316 #        Order allow,deny
317 #        Allow from all
318 #    </Limit>
319 #    <LimitExcept GET POST OPTIONS PROPFIND>
320 #        Order deny,allow
321 #        Deny from all
322 #    </LimitExcept>
323 #</Directory>
324
325 #
326 # DirectoryIndex: sets the file that Apache will serve if a directory
327 # is requested.
328 #
329 # The index.html.var file (a type-map) is used to deliver content-
330 # negotiated documents.  The MultiViews Option can be used for the 
331 # same purpose, but it is much slower.
332 #
333 DirectoryIndex index.html index.html.var
334
335 #
336 # AccessFileName: The name of the file to look for in each directory
337 # for additional configuration directives.  See also the AllowOverride 
338 # directive.
339 #
340 AccessFileName .htaccess
341
342 #
343 # The following lines prevent .htaccess and .htpasswd files from being 
344 # viewed by Web clients. 
345 #
346 <Files ~ "^\.ht">
347     Order allow,deny
348     Deny from all
349 </Files>
350
351 #
352 # TypesConfig describes where the mime.types file (or equivalent) is
353 # to be found.
354 #
355 TypesConfig conf/mime.types
356
357 #
358 # DefaultType is the default MIME type the server will use for a document
359 # if it cannot otherwise determine one, such as from filename extensions.
360 # If your server contains mostly text or HTML documents, "text/plain" is
361 # a good value.  If most of your content is binary, such as applications
362 # or images, you may want to use "application/octet-stream" instead to
363 # keep browsers from trying to display binary files as though they are
364 # text.
365 #
366 DefaultType text/plain
367
368 #
369 # The mod_mime_magic module allows the server to use various hints from the
370 # contents of the file itself to determine its type.  The MIMEMagicFile
371 # directive tells the module where the hint definitions are located.
372 #
373 <IfModule mod_mime_magic.c>
374     MIMEMagicFile conf/magic
375 </IfModule>
376
377 #
378 # HostnameLookups: Log the names of clients or just their IP addresses
379 # e.g., www.apache.org (on) or 204.62.129.132 (off).
380 # The default is off because it'd be overall better for the net if people
381 # had to knowingly turn this feature on, since enabling it means that
382 # each client request will result in AT LEAST one lookup request to the
383 # nameserver.
384 #
385 HostnameLookups Off
386
387 #
388 # EnableMMAP: Control whether memory-mapping is used to deliver
389 # files (assuming that the underlying OS supports it).
390 # The default is on; turn this off if you serve from NFS-mounted 
391 # filesystems.  On some systems, turning it off (regardless of
392 # filesystem) can improve performance; for details, please see
393 # http://httpd.apache.org/docs-2.1/mod/core.html#enablemmap
394 #
395 #EnableMMAP off
396
397 #
398 # EnableSendfile: Control whether the sendfile kernel support is 
399 # used  to deliver files (assuming that the OS supports it).
400 # The default is on; turn this off if you serve from NFS-mounted 
401 # filesystems.  Please see
402 # http://httpd.apache.org/docs-2.1/mod/core.html#enablesendfile
403 #
404 #EnableSendfile off
405
406 #
407 # ErrorLog: The location of the error log file.
408 # If you do not specify an ErrorLog directive within a <VirtualHost>
409 # container, error messages relating to that virtual host will be
410 # logged here.  If you *do* define an error logfile for a <VirtualHost>
411 # container, that host's errors will be logged there and not here.
412 #
413 ErrorLog logs/error.log
414
415 #
416 # LogLevel: Control the number of messages logged to the error.log.
417 # Possible values include: debug, info, notice, warn, error, crit,
418 # alert, emerg.
419 #
420 LogLevel warn
421
422 #
423 # The following directives define some format nicknames for use with
424 # a CustomLog directive (see below).
425 #
426 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
427 LogFormat "%h %l %u %t \"%r\" %>s %b" common
428 LogFormat "%{Referer}i -> %U" referer
429 LogFormat "%{User-agent}i" agent
430
431 # You need to enable mod_logio.c to use %I and %O
432 #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
433
434 #
435 # The location and format of the access logfile (Common Logfile Format).
436 # If you do not define any access logfiles within a <VirtualHost>
437 # container, they will be logged here.  Contrariwise, if you *do*
438 # define per-<VirtualHost> access logfiles, transactions will be
439 # logged therein and *not* in this file.
440 #
441 CustomLog logs/access.log common
442
443 #
444 # If you would like to have agent and referer logfiles, uncomment the
445 # following directives.
446 #
447 #CustomLog logs/referer.log referer
448 #CustomLog logs/agent.log agent
449
450 #
451 # If you prefer a single logfile with access, agent, and referer information
452 # (Combined Logfile Format) you can use the following directive.
453 #
454 #CustomLog logs/access.log combined
455
456 #
457 # ServerTokens
458 # This directive configures what you return as the Server HTTP response
459 # Header. The default is 'Full' which sends information about the OS-Type
460 # and compiled in modules.
461 # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
462 # where Full conveys the most information, and Prod the least.
463 #
464 ServerTokens Full
465
466 #
467 # Optionally add a line containing the server version and virtual host
468 # name to server-generated pages (internal error documents, FTP directory 
469 # listings, mod_status and mod_info output etc., but not CGI generated 
470 # documents or custom error documents).
471 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
472 # Set to one of:  On | Off | EMail
473 #
474 ServerSignature On
475
476
477 # Apache parses all CGI scripts for the shebang line by default.
478 # This comment line, the first line of the script, consists of the symbols
479 # pound (#) and exclamation (!) followed by the path of the program that 
480 # can execute this specific script.  For a perl script, with perl.exe in
481 # the C:\Program Files\Perl directory, the shebang line should be:
482
483    #!c:/program files/perl/perl
484
485 # Note you _must_not_ indent the actual shebang line, and it must be the
486 # first line of the file.  Of course, CGI processing must be enabled by 
487 # the appropriate ScriptAlias or Options ExecCGI directives for the files 
488 # or directory in question.
489 #
490 # However, Apache on Windows allows either the Unix behavior above, or can
491 # use the Registry to match files by extention.  The command to execute 
492 # a file of this type is retrieved from the registry by the same method as 
493 # the Windows Explorer would use to handle double-clicking on a file.
494 # These script actions can be configured from the Windows Explorer View menu, 
495 # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
496 # button allows you to modify the Actions, of which Apache 1.3 attempts to
497 # perform the 'Open' Action, and failing that it will try the shebang line.
498 # This behavior is subject to change in Apache release 2.0.
499 #
500 # Each mechanism has it's own specific security weaknesses, from the means
501 # to run a program you didn't intend the website owner to invoke, and the
502 # best method is a matter of great debate.
503 #
504 # To enable the this Windows specific behavior (and therefore -disable- the
505 # equivilant Unix behavior), uncomment the following directive:
506 #
507 #ScriptInterpreterSource registry
508 #
509 # The directive above can be placed in individual <Directory> blocks or the
510 # .htaccess file, with either the 'registry' (Windows behavior) or 'script' 
511 # (Unix behavior) option, and will override this server default option.
512 #
513
514 #
515 # Aliases: Add here as many aliases as you need (with no limit). The format is 
516 # Alias fakename realname
517 #
518 # Note that if you include a trailing / on fakename then the server will
519 # require it to be present in the URL.  So "/icons" isn't aliased in this
520 # example, only "/icons/".  If the fakename is slash-terminated, then the 
521 # realname must also be slash terminated, and if the fakename omits the 
522 # trailing slash, the realname must also omit it.
523 #
524 # We include the /icons/ alias for FancyIndexed directory listings.  If you
525 # do not use FancyIndexing, you may comment this out.
526 #
527 Alias /icons/ "@@ServerRoot@@/icons/"
528
529 <Directory "@@ServerRoot@@/icons">
530     Options Indexes MultiViews
531     AllowOverride None
532     Order allow,deny
533     Allow from all
534 </Directory>
535
536 #
537 # This should be changed to the ServerRoot/manual/.  The alias provides
538 # the manual, even if you choose to move your DocumentRoot.  You may comment
539 # this out if you do not care for the documentation.
540 #
541 AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "@@ServerRoot@@/manual$1"
542
543 <Directory "@@ServerRoot@@/manual">
544     Options Indexes
545     AllowOverride None
546     Order allow,deny
547     Allow from all
548
549     <Files *.html>
550         SetHandler type-map
551     </Files>
552
553     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
554     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
555 </Directory>
556
557 #
558 # ScriptAlias: This controls which directories contain server scripts.
559 # ScriptAliases are essentially the same as Aliases, except that
560 # documents in the realname directory are treated as applications and
561 # run by the server when requested rather than as documents sent to the client.
562 # The same rules about trailing "/" apply to ScriptAlias directives as to
563 # Alias.
564 #
565 ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
566
567 #
568 # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
569 # CGI directory exists, if you have that configured.
570 #
571 <Directory "@@ServerRoot@@/cgi-bin">
572     AllowOverride None
573     Options None
574     Order allow,deny
575     Allow from all
576 </Directory>
577
578 #
579 # Redirect allows you to tell clients about documents which used to exist in
580 # your server's namespace, but do not anymore. This allows you to tell the
581 # clients where to look for the relocated document.
582 # Example:
583 # Redirect permanent /foo http://www.example.com/bar
584
585 #
586 # Directives controlling the display of server-generated directory listings.
587 #
588
589 #
590 # IndexOptions: Controls the appearance of server-generated directory
591 # listings.
592 #
593 IndexOptions FancyIndexing VersionSort
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 ReadmeName README.html
652 HeaderName HEADER.html
653
654 #
655 # IndexIgnore is a set of filenames which directory indexing should ignore
656 # and not include in the listing.  Shell-style wildcarding is permitted.
657 #
658 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
659
660 #
661 # AddType allows you to add to or override the MIME configuration
662 # file mime.types for specific file types.
663 #
664 #AddType application/x-gzip .tgz
665 #
666 # AddEncoding allows you to have certain browsers uncompress
667 # information on the fly. Note: Not all browsers support this.
668 # Despite the name similarity, the following Add* directives have
669 # nothing to do with the FancyIndexing customization directives above.
670 #
671 #AddEncoding x-compress .Z
672 #AddEncoding x-gzip .gz .tgz
673 #
674 # If the AddEncoding directives above are commented-out, then you
675 # probably should define those extensions to indicate media types:
676 #
677 AddType application/x-compress .Z
678 AddType application/x-gzip .gz .tgz
679
680 #
681 # DefaultLanguage and AddLanguage allows you to specify the language of 
682 # a document. You can then use content negotiation to give a browser a 
683 # file in a language the user can understand.
684 #
685 # Specify a default language. This means that all data
686 # going out without a specific language tag (see below) will 
687 # be marked with this one. You probably do NOT want to set
688 # this unless you are sure it is correct for all cases.
689 #
690 # * It is generally better to not mark a page as 
691 # * being a certain language than marking it with the wrong
692 # * language!
693 #
694 # DefaultLanguage nl
695 #
696 # Note 1: The suffix does not have to be the same as the language
697 # keyword --- those with documents in Polish (whose net-standard
698 # language code is pl) may wish to use "AddLanguage pl .po" to
699 # avoid the ambiguity with the common suffix for perl scripts.
700 #
701 # Note 2: The example entries below illustrate that in some cases 
702 # the two character 'Language' abbreviation is not identical to 
703 # the two character 'Country' code for its country,
704 # E.g. 'Danmark/dk' versus 'Danish/da'.
705 #
706 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
707 # specifier. There is 'work in progress' to fix this and get
708 # the reference data for rfc1766 cleaned up.
709 #
710 # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
711 # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
712 # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
713 # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
714 # Norwegian (no) - Polish (pl) - Portugese (pt)
715 # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
716 # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
717 #
718 AddLanguage ca .ca
719 AddLanguage cs .cz .cs
720 AddLanguage da .dk
721 AddLanguage de .de
722 AddLanguage el .el
723 AddLanguage en .en
724 AddLanguage eo .eo
725 AddLanguage es .es
726 AddLanguage et .et
727 AddLanguage fr .fr
728 AddLanguage he .he
729 AddLanguage hr .hr
730 AddLanguage it .it
731 AddLanguage ja .ja
732 AddLanguage ko .ko
733 AddLanguage ltz .ltz
734 AddLanguage nl .nl
735 AddLanguage nn .nn
736 AddLanguage no .no
737 AddLanguage pl .po
738 AddLanguage pt .pt
739 AddLanguage pt-BR .pt-br
740 AddLanguage ru .ru
741 AddLanguage sv .sv
742 AddLanguage zh-CN .zh-cn
743 AddLanguage zh-TW .zh-tw
744
745 #
746 # LanguagePriority allows you to give precedence to some languages
747 # in case of a tie during content negotiation.
748 #
749 # Just list the languages in decreasing order of preference. We have
750 # more or less alphabetized them here. You probably want to change this.
751 #
752 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 zh-CN zh-TW
753
754 #
755 # ForceLanguagePriority allows you to serve a result page rather than
756 # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
757 # [in case no accepted languages matched the available variants]
758 #
759 ForceLanguagePriority Prefer Fallback
760
761 #
762 # Specify a default charset for all pages sent out. This is
763 # always a good idea and opens the door for future internationalisation
764 # of your web site, should you ever want it. Specifying it as
765 # a default does little harm; as the standard dictates that a page
766 # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
767 # are merely stating the obvious. There are also some security
768 # reasons in browsers, related to javascript and URL parsing
769 # which encourage you to always set a default char set.
770 #
771 AddDefaultCharset ISO-8859-1
772
773 #
774 # Commonly used filename extensions to character sets. You probably
775 # want to avoid clashes with the language extensions, unless you
776 # are good at carefully testing your setup after each change.
777 # See http://www.iana.org/assignments/character-sets for the
778 # official list of charset names and their respective RFCs.
779 #
780 AddCharset ISO-8859-1  .iso8859-1 .latin1
781 AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
782 AddCharset ISO-8859-3  .iso8859-3 .latin3
783 AddCharset ISO-8859-4  .iso8859-4 .latin4
784 AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
785 AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
786 AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
787 AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
788 AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
789 AddCharset ISO-2022-JP .iso2022-jp .jis
790 AddCharset ISO-2022-KR .iso2022-kr .kis
791 AddCharset ISO-2022-CN .iso2022-cn .cis
792 AddCharset Big5        .Big5       .big5
793 # For russian, more than one charset is used (depends on client, mostly):
794 AddCharset WINDOWS-1251 .cp-1251   .win-1251
795 AddCharset CP866       .cp866
796 AddCharset KOI8-r      .koi8-r .koi8-ru
797 AddCharset KOI8-ru     .koi8-uk .ua
798 AddCharset ISO-10646-UCS-2 .ucs2
799 AddCharset ISO-10646-UCS-4 .ucs4
800 AddCharset UTF-8       .utf8
801
802 # The set below does not map to a specific (iso) standard
803 # but works on a fairly wide range of browsers. Note that
804 # capitalization actually matters (it should not, but it
805 # does for some browsers).
806 #
807 # See http://www.iana.org/assignments/character-sets
808 # for a list of sorts. But browsers support few.
809 #
810 AddCharset GB2312      .gb2312 .gb 
811 AddCharset utf-7       .utf7
812 AddCharset utf-8       .utf8
813 AddCharset big5        .big5 .b5
814 AddCharset EUC-TW      .euc-tw
815 AddCharset EUC-JP      .euc-jp
816 AddCharset EUC-KR      .euc-kr
817 AddCharset shift_jis   .sjis
818
819 #
820 # AddHandler allows you to map certain file extensions to "handlers":
821 # actions unrelated to filetype. These can be either built into the server
822 # or added with the Action directive (see below)
823 #
824 # To use CGI scripts outside of ScriptAliased directories:
825 # (You will also need to add "ExecCGI" to the "Options" directive.)
826 #
827 #AddHandler cgi-script .cgi
828
829 #
830 # For files that include their own HTTP headers:
831 #
832 #AddHandler send-as-is asis
833
834 #
835 # For server-parsed imagemap files:
836 #
837 #AddHandler imap-file map
838
839 #
840 # For type maps (negotiated resources):
841 # (This is enabled by default to allow the Apache "It Worked" page
842 #  to be distributed in multiple languages.)
843 #
844 AddHandler type-map var
845
846 #
847 # Filters allow you to process content before it is sent to the client.
848 #
849 # To parse .shtml files for server-side includes (SSI):
850 # (You will also need to add "Includes" to the "Options" directive.)
851 #
852 #AddType text/html .shtml
853 #AddOutputFilter INCLUDES .shtml
854
855 #
856 # Action lets you define media types that will execute a script whenever
857 # a matching file is called. This eliminates the need for repeated URL
858 # pathnames for oft-used CGI file processors.
859 # Format: Action media/type /cgi-script/location
860 # Format: Action handler-name /cgi-script/location
861 #
862
863 #
864 # Customizable error responses come in three flavors:
865 # 1) plain text 2) local redirects 3) external redirects
866 #
867 # Some examples:
868 #ErrorDocument 500 "The server made a boo boo."
869 #ErrorDocument 404 /missing.html
870 #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
871 #ErrorDocument 402 http://www.example.com/subscription_info.html
872 #
873
874 #
875 # Putting this all together, we can internationalize error responses.
876 #
877 # We use Alias to redirect any /error/HTTP_<error>.html.var response to
878 # our collection of by-error message multi-language collections.  We use 
879 # includes to substitute the appropriate text.
880 #
881 # You can modify the messages' appearance without changing any of the
882 # default HTTP_<error>.html.var files by adding the line:
883 #
884 #   Alias /error/include/ "/your/include/path/"
885 #
886 # which allows you to create your own set of files by starting with the
887 # @exp_errordir@/include/ files and copying them to /your/include/path/, 
888 # even on a per-VirtualHost basis.  The default include files will display
889 # your Apache version number and your ServerAdmin email address regardless
890 # of the setting of ServerSignature.
891 #
892 # The internationalized error documents require mod_alias, mod_include
893 # and mod_negotiation.  To activate them, uncomment the following 30 lines.
894
895 #    Alias /error/ "@exp_errordir@/"
896 #
897 #    <Directory "@exp_errordir@">
898 #        AllowOverride None
899 #        Options IncludesNoExec
900 #        AddOutputFilter Includes html
901 #        AddHandler type-map var
902 #        Order allow,deny
903 #        Allow from all
904 #        LanguagePriority en cs de es fr it nl sv pt-br ro
905 #        ForceLanguagePriority Prefer Fallback
906 #    </Directory>
907 #
908 #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
909 #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
910 #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
911 #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
912 #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
913 #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
914 #    ErrorDocument 410 /error/HTTP_GONE.html.var
915 #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
916 #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
917 #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
918 #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
919 #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
920 #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
921 #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
922 #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
923 #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
924 #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
925
926
927
928 #
929 # The following directives modify normal HTTP response behavior to
930 # handle known problems with browser implementations.
931 #
932 BrowserMatch "Mozilla/2" nokeepalive
933 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
934 BrowserMatch "RealPlayer 4\.0" force-response-1.0
935 BrowserMatch "Java/1\.0" force-response-1.0
936 BrowserMatch "JDK/1\.0" force-response-1.0
937
938 #
939 # The following directive disables redirects on non-GET requests for
940 # a directory that does not include the trailing slash.  This fixes a 
941 # problem with Microsoft WebFolders which does not appropriately handle 
942 # redirects for folders with DAV methods.
943 # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
944 #
945 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
946 BrowserMatch "^WebDrive" redirect-carefully
947 BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
948 BrowserMatch "^gnome-vfs/1.0" redirect-carefully
949 BrowserMatch "^XML Spy" redirect-carefully
950
951 #
952 # Allow server status reports generated by mod_status,
953 # with the URL of http://servername/server-status
954 # Change the ".@@DomainName@@" to match your domain to enable.
955 #
956 #<Location /server-status>
957 #    SetHandler server-status
958 #    Order deny,allow
959 #    Deny from all
960 #    Allow from .@@DomainName@@
961 #</Location>
962
963 #
964 # Allow remote server configuration reports, with the URL of
965 #  http://servername/server-info (requires that mod_info.c be loaded).
966 # Change the ".@@DomainName@@" to match your domain to enable.
967 #
968 #<Location /server-info>
969 #    SetHandler server-info
970 #    Order deny,allow
971 #    Deny from all
972 #    Allow from .@@DomainName@@
973 #</Location>
974
975
976 #
977 # Bring in additional module-specific configurations
978 #
979 <IfModule mod_ssl.c>
980     Include conf/ssl.conf
981 </IfModule>
982
983
984 ### Section 3: Virtual Hosts
985 #
986 # VirtualHost: If you want to maintain multiple domains/hostnames on your
987 # machine you can setup VirtualHost containers for them. Most configurations
988 # use only name-based virtual hosts so the server doesn't need to worry about
989 # IP addresses. This is indicated by the asterisks in the directives below.
990 #
991 # Please see the documentation at 
992 # <URL:http://httpd.apache.org/docs-2.1/vhosts/>
993 # for further details before you try to setup virtual hosts.
994 #
995 # You may use the command line option '-S' to verify your virtual host
996 # configuration.
997
998 #
999 # Use name-based virtual hosting.
1000 #
1001 #NameVirtualHost *:80
1002
1003 #
1004 # VirtualHost example:
1005 # Almost any Apache directive may go into a VirtualHost container.
1006 # The first VirtualHost section is used for requests without a known
1007 # server name.
1008 #
1009 #<VirtualHost *:80>
1010 #    ServerAdmin webmaster@dummy-host.example.com
1011 #    DocumentRoot /www/docs/dummy-host.example.com
1012 #    ServerName dummy-host.example.com
1013 #    ErrorLog logs/dummy-host.example.com-error_log
1014 #    CustomLog logs/dummy-host.example.com-access_log common
1015 #</VirtualHost>