2 # Based upon the NCSA server configuration files originally by Rob McCool.
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
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.
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.
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".
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
39 ### Section 1: Global Environment
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.
47 # ServerRoot: The top of the directory tree under which the server's
48 # configuration, error, and log files are kept.
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.
55 # Do NOT add a slash at the end of the directory path.
57 ServerRoot "@@ServerRoot@@"
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
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.
67 #ScoreBoardFile logs/apache_runtime_status
70 # PidFile: The file in which the server should record its process
71 # identification number when it starts.
73 PidFile logs/httpd.pid
76 # Timeout: The number of seconds before receives and sends time out.
81 # KeepAlive: Whether or not to allow persistent connections (more than
82 # one request per connection). Set to "Off" to deactivate.
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.
91 MaxKeepAliveRequests 100
94 # KeepAliveTimeout: Number of seconds to wait for the next request from the
95 # same client on the same connection.
100 ## Server-Pool Size Regulation (MPM specific)
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>
108 MaxRequestsPerChild 0
112 # Listen: Allows you to bind Apache to specific IP addresses and/or
113 # ports, instead of the default. See also the <VirtualHost>
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)
119 #Listen 12.34.56.78:80
123 # Dynamic Shared Object (DSO) Support
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
132 # LoadModule foo_module modules/mod_foo.so
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_connect_module modules/mod_proxy_connect.so
168 #LoadModule proxy_http_module modules/mod_proxy_http.so
169 #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
170 LoadModule negotiation_module modules/mod_negotiation.so
171 #LoadModule rewrite_module modules/mod_rewrite.so
172 LoadModule setenvif_module modules/mod_setenvif.so
173 #LoadModule speling_module modules/mod_speling.so
174 #LoadModule status_module modules/mod_status.so
175 #LoadModule unique_id_module modules/mod_unique_id.so
176 LoadModule userdir_module modules/mod_userdir.so
177 #LoadModule usertrack_module modules/mod_usertrack.so
178 #LoadModule vhost_alias_module modules/mod_vhost_alias.so
179 #LoadModule ssl_module modules/mod_ssl.so
182 # ExtendedStatus controls whether Apache will generate "full" status
183 # information (ExtendedStatus On) or just basic information (ExtendedStatus
184 # Off) when the "server-status" handler is called. The default is Off.
188 ### Section 2: 'Main' server configuration
190 # The directives in this section set up the values used by the 'main'
191 # server, which responds to any requests that aren't handled by a
192 # <VirtualHost> definition. These values also provide defaults for
193 # any <VirtualHost> containers you may define later in the file.
195 # All of these directives may appear inside <VirtualHost> containers,
196 # in which case these default settings will be overridden for the
197 # virtual host being defined.
201 # ServerAdmin: Your address, where problems with the server should be
202 # e-mailed. This address appears on some server-generated pages, such
203 # as error documents. e.g. admin@your-domain.com
205 ServerAdmin @@ServerAdmin@@
208 # ServerName gives the name and port that the server uses to identify itself.
209 # This can often be determined automatically, but we recommend you specify
210 # it explicitly to prevent problems during startup.
212 # If this is not set to valid DNS name for your host, server-generated
213 # redirections will not work. See also the UseCanonicalName directive.
215 # If your host doesn't have a registered DNS name, enter its IP address here.
216 # You will have to access it by its address anyway, and this will make
217 # redirections work in a sensible way.
219 ServerName @@ServerName@@:@@Port@@
222 # UseCanonicalName: Determines how Apache constructs self-referencing
223 # URLs and the SERVER_NAME and SERVER_PORT variables.
224 # When set "Off", Apache will use the Hostname and Port supplied
225 # by the client. When set "On", Apache will use the value of the
226 # ServerName directive.
231 # DocumentRoot: The directory out of which you will serve your
232 # documents. By default, all requests are taken from this directory, but
233 # symbolic links and aliases may be used to point to other locations.
235 DocumentRoot "@@ServerRoot@@/htdocs"
238 # Each directory to which Apache has access can be configured with respect
239 # to which services and features are allowed and/or disabled in that
240 # directory (and its subdirectories).
242 # First, we configure the "default" to be a very restrictive set of
246 Options FollowSymLinks
253 # Note that from this point forward you must specifically allow
254 # particular features to be enabled - so if something's not working as
255 # you might expect, make sure that you have specifically enabled it
260 # This should be changed to whatever you set DocumentRoot to.
262 <Directory "@@ServerRoot@@/htdocs">
265 # Possible values for the Options directive are "None", "All",
266 # or any combination of:
267 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
269 # Note that "MultiViews" must be named *explicitly* --- "Options All"
270 # doesn't give it to you.
272 # The Options directive is both complicated and important. Please see
273 # http://httpd.apache.org/docs-2.1/mod/core.html#options
274 # for more information.
276 Options Indexes FollowSymLinks
279 # AllowOverride controls what directives may be placed in .htaccess files.
280 # It can be "All", "None", or any combination of the keywords:
281 # Options FileInfo AuthConfig Limit
286 # Controls who can get stuff from this server.
294 # UserDir: The name of the directory that is appended onto a user's home
295 # directory if a ~user request is received. Be especially careful to use
296 # proper, forward slashes here. On Windows NT, "Personal/My Website"
297 # is a more appropriate choice. Note that you must also set the default
298 # access control for these directories, as in the example below.
300 UserDir "My Documents/My Website"
303 # Control access to UserDir directories. The following is an example
304 # for a site where these directories are restricted to read-only.
306 # You must correct the path for the root to match your system's configured
307 # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
308 # or whichever, as appropriate.
310 #<Directory "C:/Documents and Settings/*/My Documents/My Website">
311 # AllowOverride FileInfo AuthConfig Limit
312 # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
313 # <Limit GET POST OPTIONS PROPFIND>
317 # <LimitExcept GET POST OPTIONS PROPFIND>
324 # DirectoryIndex: sets the file that Apache will serve if a directory
327 # The index.html.var file (a type-map) is used to deliver content-
328 # negotiated documents. The MultiViews Option can be used for the
329 # same purpose, but it is much slower.
331 DirectoryIndex index.html index.html.var
334 # AccessFileName: The name of the file to look for in each directory
335 # for additional configuration directives. See also the AllowOverride
338 AccessFileName .htaccess
341 # The following lines prevent .htaccess and .htpasswd files from being
342 # viewed by Web clients.
350 # TypesConfig describes where the mime.types file (or equivalent) is
353 TypesConfig conf/mime.types
356 # DefaultType is the default MIME type the server will use for a document
357 # if it cannot otherwise determine one, such as from filename extensions.
358 # If your server contains mostly text or HTML documents, "text/plain" is
359 # a good value. If most of your content is binary, such as applications
360 # or images, you may want to use "application/octet-stream" instead to
361 # keep browsers from trying to display binary files as though they are
364 DefaultType text/plain
367 # The mod_mime_magic module allows the server to use various hints from the
368 # contents of the file itself to determine its type. The MIMEMagicFile
369 # directive tells the module where the hint definitions are located.
371 <IfModule mod_mime_magic.c>
372 MIMEMagicFile conf/magic
376 # HostnameLookups: Log the names of clients or just their IP addresses
377 # e.g., www.apache.org (on) or 204.62.129.132 (off).
378 # The default is off because it'd be overall better for the net if people
379 # had to knowingly turn this feature on, since enabling it means that
380 # each client request will result in AT LEAST one lookup request to the
386 # EnableMMAP: Control whether memory-mapping is used to deliver
387 # files (assuming that the underlying OS supports it).
388 # The default is on; turn this off if you serve from NFS-mounted
389 # filesystems. On some systems, turning it off (regardless of
390 # filesystem) can improve performance; for details, please see
391 # http://httpd.apache.org/docs-2.1/mod/core.html#enablemmap
396 # EnableSendfile: Control whether the sendfile kernel support is
397 # used to deliver files (assuming that the OS supports it).
398 # The default is on; turn this off if you serve from NFS-mounted
399 # filesystems. Please see
400 # http://httpd.apache.org/docs-2.1/mod/core.html#enablesendfile
405 # ErrorLog: The location of the error log file.
406 # If you do not specify an ErrorLog directive within a <VirtualHost>
407 # container, error messages relating to that virtual host will be
408 # logged here. If you *do* define an error logfile for a <VirtualHost>
409 # container, that host's errors will be logged there and not here.
411 ErrorLog logs/error.log
414 # LogLevel: Control the number of messages logged to the error.log.
415 # Possible values include: debug, info, notice, warn, error, crit,
421 # The following directives define some format nicknames for use with
422 # a CustomLog directive (see below).
424 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
425 LogFormat "%h %l %u %t \"%r\" %>s %b" common
426 LogFormat "%{Referer}i -> %U" referer
427 LogFormat "%{User-agent}i" agent
429 # You need to enable mod_logio.c to use %I and %O
430 #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
433 # The location and format of the access logfile (Common Logfile Format).
434 # If you do not define any access logfiles within a <VirtualHost>
435 # container, they will be logged here. Contrariwise, if you *do*
436 # define per-<VirtualHost> access logfiles, transactions will be
437 # logged therein and *not* in this file.
439 CustomLog logs/access.log common
442 # If you would like to have agent and referer logfiles, uncomment the
443 # following directives.
445 #CustomLog logs/referer.log referer
446 #CustomLog logs/agent.log agent
449 # If you prefer a single logfile with access, agent, and referer information
450 # (Combined Logfile Format) you can use the following directive.
452 #CustomLog logs/access.log combined
456 # This directive configures what you return as the Server HTTP response
457 # Header. The default is 'Full' which sends information about the OS-Type
458 # and compiled in modules.
459 # Set to one of: Full | OS | Minor | Minimal | Major | Prod
460 # where Full conveys the most information, and Prod the least.
465 # Optionally add a line containing the server version and virtual host
466 # name to server-generated pages (internal error documents, FTP directory
467 # listings, mod_status and mod_info output etc., but not CGI generated
468 # documents or custom error documents).
469 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
470 # Set to one of: On | Off | EMail
475 # Apache parses all CGI scripts for the shebang line by default.
476 # This comment line, the first line of the script, consists of the symbols
477 # pound (#) and exclamation (!) followed by the path of the program that
478 # can execute this specific script. For a perl script, with perl.exe in
479 # the C:\Program Files\Perl directory, the shebang line should be:
481 #!c:/program files/perl/perl
483 # Note you _must_not_ indent the actual shebang line, and it must be the
484 # first line of the file. Of course, CGI processing must be enabled by
485 # the appropriate ScriptAlias or Options ExecCGI directives for the files
486 # or directory in question.
488 # However, Apache on Windows allows either the Unix behavior above, or can
489 # use the Registry to match files by extention. The command to execute
490 # a file of this type is retrieved from the registry by the same method as
491 # the Windows Explorer would use to handle double-clicking on a file.
492 # These script actions can be configured from the Windows Explorer View menu,
493 # 'Folder Options', and reviewing the 'File Types' tab. Clicking the Edit
494 # button allows you to modify the Actions, of which Apache 1.3 attempts to
495 # perform the 'Open' Action, and failing that it will try the shebang line.
496 # This behavior is subject to change in Apache release 2.0.
498 # Each mechanism has it's own specific security weaknesses, from the means
499 # to run a program you didn't intend the website owner to invoke, and the
500 # best method is a matter of great debate.
502 # To enable the this Windows specific behavior (and therefore -disable- the
503 # equivilant Unix behavior), uncomment the following directive:
505 #ScriptInterpreterSource registry
507 # The directive above can be placed in individual <Directory> blocks or the
508 # .htaccess file, with either the 'registry' (Windows behavior) or 'script'
509 # (Unix behavior) option, and will override this server default option.
513 # Aliases: Add here as many aliases as you need (with no limit). The format is
514 # Alias fakename realname
516 # Note that if you include a trailing / on fakename then the server will
517 # require it to be present in the URL. So "/icons" isn't aliased in this
518 # example, only "/icons/". If the fakename is slash-terminated, then the
519 # realname must also be slash terminated, and if the fakename omits the
520 # trailing slash, the realname must also omit it.
522 # We include the /icons/ alias for FancyIndexed directory listings. If you
523 # do not use FancyIndexing, you may comment this out.
525 Alias /icons/ "@@ServerRoot@@/icons/"
527 <Directory "@@ServerRoot@@/icons">
528 Options Indexes MultiViews
535 # This should be changed to the ServerRoot/manual/. The alias provides
536 # the manual, even if you choose to move your DocumentRoot. You may comment
537 # this out if you do not care for the documentation.
539 AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "@@ServerRoot@@/manual$1"
541 <Directory "@@ServerRoot@@/manual">
551 SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
552 RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
556 # ScriptAlias: This controls which directories contain server scripts.
557 # ScriptAliases are essentially the same as Aliases, except that
558 # documents in the realname directory are treated as applications and
559 # run by the server when requested rather than as documents sent to the client.
560 # The same rules about trailing "/" apply to ScriptAlias directives as to
563 ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
566 # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
567 # CGI directory exists, if you have that configured.
569 <Directory "@@ServerRoot@@/cgi-bin">
577 # Redirect allows you to tell clients about documents which used to exist in
578 # your server's namespace, but do not anymore. This allows you to tell the
579 # clients where to look for the relocated document.
581 # Redirect permanent /foo http://www.example.com/bar
584 # Directives controlling the display of server-generated directory listings.
588 # IndexOptions: Controls the appearance of server-generated directory
591 IndexOptions FancyIndexing VersionSort
594 # AddIcon* directives tell the server which icon to show for different
595 # files or filename extensions. These are only displayed for
596 # FancyIndexed directories.
598 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
600 AddIconByType (TXT,/icons/text.gif) text/*
601 AddIconByType (IMG,/icons/image2.gif) image/*
602 AddIconByType (SND,/icons/sound2.gif) audio/*
603 AddIconByType (VID,/icons/movie.gif) video/*
605 AddIcon /icons/binary.gif .bin .exe
606 AddIcon /icons/binhex.gif .hqx
607 AddIcon /icons/tar.gif .tar
608 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
609 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
610 AddIcon /icons/a.gif .ps .ai .eps
611 AddIcon /icons/layout.gif .html .shtml .htm .pdf
612 AddIcon /icons/text.gif .txt
613 AddIcon /icons/c.gif .c
614 AddIcon /icons/p.gif .pl .py
615 AddIcon /icons/f.gif .for
616 AddIcon /icons/dvi.gif .dvi
617 AddIcon /icons/uuencoded.gif .uu
618 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
619 AddIcon /icons/tex.gif .tex
620 AddIcon /icons/bomb.gif core
622 AddIcon /icons/back.gif ..
623 AddIcon /icons/hand.right.gif README
624 AddIcon /icons/folder.gif ^^DIRECTORY^^
625 AddIcon /icons/blank.gif ^^BLANKICON^^
628 # DefaultIcon is which icon to show for files which do not have an icon
631 DefaultIcon /icons/unknown.gif
634 # AddDescription allows you to place a short description after a file in
635 # server-generated indexes. These are only displayed for FancyIndexed
637 # Format: AddDescription "description" filename
639 #AddDescription "GZIP compressed document" .gz
640 #AddDescription "tar archive" .tar
641 #AddDescription "GZIP compressed tar archive" .tgz
644 # ReadmeName is the name of the README file the server will look for by
645 # default, and append to directory listings.
647 # HeaderName is the name of a file which should be prepended to
649 ReadmeName README.html
650 HeaderName HEADER.html
653 # IndexIgnore is a set of filenames which directory indexing should ignore
654 # and not include in the listing. Shell-style wildcarding is permitted.
656 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
659 # AddType allows you to add to or override the MIME configuration
660 # file mime.types for specific file types.
662 #AddType application/x-gzip .tgz
664 # AddEncoding allows you to have certain browsers uncompress
665 # information on the fly. Note: Not all browsers support this.
666 # Despite the name similarity, the following Add* directives have
667 # nothing to do with the FancyIndexing customization directives above.
669 #AddEncoding x-compress .Z
670 #AddEncoding x-gzip .gz .tgz
672 # If the AddEncoding directives above are commented-out, then you
673 # probably should define those extensions to indicate media types:
675 AddType application/x-compress .Z
676 AddType application/x-gzip .gz .tgz
679 # DefaultLanguage and AddLanguage allows you to specify the language of
680 # a document. You can then use content negotiation to give a browser a
681 # file in a language the user can understand.
683 # Specify a default language. This means that all data
684 # going out without a specific language tag (see below) will
685 # be marked with this one. You probably do NOT want to set
686 # this unless you are sure it is correct for all cases.
688 # * It is generally better to not mark a page as
689 # * being a certain language than marking it with the wrong
694 # Note 1: The suffix does not have to be the same as the language
695 # keyword --- those with documents in Polish (whose net-standard
696 # language code is pl) may wish to use "AddLanguage pl .po" to
697 # avoid the ambiguity with the common suffix for perl scripts.
699 # Note 2: The example entries below illustrate that in some cases
700 # the two character 'Language' abbreviation is not identical to
701 # the two character 'Country' code for its country,
702 # E.g. 'Danmark/dk' versus 'Danish/da'.
704 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
705 # specifier. There is 'work in progress' to fix this and get
706 # the reference data for rfc1766 cleaned up.
708 # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
709 # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
710 # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
711 # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
712 # Norwegian (no) - Polish (pl) - Portugese (pt)
713 # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
714 # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
717 AddLanguage cs .cz .cs
737 AddLanguage pt-BR .pt-br
740 AddLanguage zh-CN .zh-cn
741 AddLanguage zh-TW .zh-tw
744 # LanguagePriority allows you to give precedence to some languages
745 # in case of a tie during content negotiation.
747 # Just list the languages in decreasing order of preference. We have
748 # more or less alphabetized them here. You probably want to change this.
750 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 # ForceLanguagePriority allows you to serve a result page rather than
754 # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
755 # [in case no accepted languages matched the available variants]
757 ForceLanguagePriority Prefer Fallback
760 # Specify a default charset for all pages sent out. This is
761 # always a good idea and opens the door for future internationalisation
762 # of your web site, should you ever want it. Specifying it as
763 # a default does little harm; as the standard dictates that a page
764 # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
765 # are merely stating the obvious. There are also some security
766 # reasons in browsers, related to javascript and URL parsing
767 # which encourage you to always set a default char set.
769 AddDefaultCharset ISO-8859-1
772 # Commonly used filename extensions to character sets. You probably
773 # want to avoid clashes with the language extensions, unless you
774 # are good at carefully testing your setup after each change.
775 # See http://www.iana.org/assignments/character-sets for the
776 # official list of charset names and their respective RFCs.
778 AddCharset ISO-8859-1 .iso8859-1 .latin1
779 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
780 AddCharset ISO-8859-3 .iso8859-3 .latin3
781 AddCharset ISO-8859-4 .iso8859-4 .latin4
782 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
783 AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
784 AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
785 AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
786 AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
787 AddCharset ISO-2022-JP .iso2022-jp .jis
788 AddCharset ISO-2022-KR .iso2022-kr .kis
789 AddCharset ISO-2022-CN .iso2022-cn .cis
790 AddCharset Big5 .Big5 .big5
791 # For russian, more than one charset is used (depends on client, mostly):
792 AddCharset WINDOWS-1251 .cp-1251 .win-1251
793 AddCharset CP866 .cp866
794 AddCharset KOI8-r .koi8-r .koi8-ru
795 AddCharset KOI8-ru .koi8-uk .ua
796 AddCharset ISO-10646-UCS-2 .ucs2
797 AddCharset ISO-10646-UCS-4 .ucs4
798 AddCharset UTF-8 .utf8
800 # The set below does not map to a specific (iso) standard
801 # but works on a fairly wide range of browsers. Note that
802 # capitalization actually matters (it should not, but it
803 # does for some browsers).
805 # See http://www.iana.org/assignments/character-sets
806 # for a list of sorts. But browsers support few.
808 AddCharset GB2312 .gb2312 .gb
809 AddCharset utf-7 .utf7
810 AddCharset utf-8 .utf8
811 AddCharset big5 .big5 .b5
812 AddCharset EUC-TW .euc-tw
813 AddCharset EUC-JP .euc-jp
814 AddCharset EUC-KR .euc-kr
815 AddCharset shift_jis .sjis
818 # AddHandler allows you to map certain file extensions to "handlers":
819 # actions unrelated to filetype. These can be either built into the server
820 # or added with the Action directive (see below)
822 # To use CGI scripts outside of ScriptAliased directories:
823 # (You will also need to add "ExecCGI" to the "Options" directive.)
825 #AddHandler cgi-script .cgi
828 # For files that include their own HTTP headers:
830 #AddHandler send-as-is asis
833 # For server-parsed imagemap files:
835 #AddHandler imap-file map
838 # For type maps (negotiated resources):
839 # (This is enabled by default to allow the Apache "It Worked" page
840 # to be distributed in multiple languages.)
842 AddHandler type-map var
845 # Filters allow you to process content before it is sent to the client.
847 # To parse .shtml files for server-side includes (SSI):
848 # (You will also need to add "Includes" to the "Options" directive.)
850 #AddType text/html .shtml
851 #AddOutputFilter INCLUDES .shtml
854 # Action lets you define media types that will execute a script whenever
855 # a matching file is called. This eliminates the need for repeated URL
856 # pathnames for oft-used CGI file processors.
857 # Format: Action media/type /cgi-script/location
858 # Format: Action handler-name /cgi-script/location
862 # Customizable error responses come in three flavors:
863 # 1) plain text 2) local redirects 3) external redirects
866 #ErrorDocument 500 "The server made a boo boo."
867 #ErrorDocument 404 /missing.html
868 #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
869 #ErrorDocument 402 http://www.example.com/subscription_info.html
873 # Putting this all together, we can internationalize error responses.
875 # We use Alias to redirect any /error/HTTP_<error>.html.var response to
876 # our collection of by-error message multi-language collections. We use
877 # includes to substitute the appropriate text.
879 # You can modify the messages' appearance without changing any of the
880 # default HTTP_<error>.html.var files by adding the line:
882 # Alias /error/include/ "/your/include/path/"
884 # which allows you to create your own set of files by starting with the
885 # @exp_errordir@/include/ files and copying them to /your/include/path/,
886 # even on a per-VirtualHost basis. The default include files will display
887 # your Apache version number and your ServerAdmin email address regardless
888 # of the setting of ServerSignature.
890 # The internationalized error documents require mod_alias, mod_include
891 # and mod_negotiation. To activate them, uncomment the following 30 lines.
893 # Alias /error/ "@exp_errordir@/"
895 # <Directory "@exp_errordir@">
897 # Options IncludesNoExec
898 # AddOutputFilter Includes html
899 # AddHandler type-map var
902 # LanguagePriority en cs de es fr it nl sv pt-br ro
903 # ForceLanguagePriority Prefer Fallback
906 # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
907 # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
908 # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
909 # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
910 # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
911 # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
912 # ErrorDocument 410 /error/HTTP_GONE.html.var
913 # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
914 # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
915 # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
916 # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
917 # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
918 # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
919 # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
920 # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
921 # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
922 # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
927 # The following directives modify normal HTTP response behavior to
928 # handle known problems with browser implementations.
930 BrowserMatch "Mozilla/2" nokeepalive
931 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
932 BrowserMatch "RealPlayer 4\.0" force-response-1.0
933 BrowserMatch "Java/1\.0" force-response-1.0
934 BrowserMatch "JDK/1\.0" force-response-1.0
937 # The following directive disables redirects on non-GET requests for
938 # a directory that does not include the trailing slash. This fixes a
939 # problem with Microsoft WebFolders which does not appropriately handle
940 # redirects for folders with DAV methods.
941 # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
943 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
944 BrowserMatch "^WebDrive" redirect-carefully
945 BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
946 BrowserMatch "^gnome-vfs/1.0" redirect-carefully
947 BrowserMatch "^XML Spy" redirect-carefully
950 # Allow server status reports generated by mod_status,
951 # with the URL of http://servername/server-status
952 # Change the ".@@DomainName@@" to match your domain to enable.
954 #<Location /server-status>
955 # SetHandler server-status
958 # Allow from .@@DomainName@@
962 # Allow remote server configuration reports, with the URL of
963 # http://servername/server-info (requires that mod_info.c be loaded).
964 # Change the ".@@DomainName@@" to match your domain to enable.
966 #<Location /server-info>
967 # SetHandler server-info
970 # Allow from .@@DomainName@@
975 # Bring in additional module-specific configurations
978 Include conf/ssl.conf
982 ### Section 3: Virtual Hosts
984 # VirtualHost: If you want to maintain multiple domains/hostnames on your
985 # machine you can setup VirtualHost containers for them. Most configurations
986 # use only name-based virtual hosts so the server doesn't need to worry about
987 # IP addresses. This is indicated by the asterisks in the directives below.
989 # Please see the documentation at
990 # <URL:http://httpd.apache.org/docs-2.1/vhosts/>
991 # for further details before you try to setup virtual hosts.
993 # You may use the command line option '-S' to verify your virtual host
997 # Use name-based virtual hosting.
999 #NameVirtualHost *:80
1002 # VirtualHost example:
1003 # Almost any Apache directive may go into a VirtualHost container.
1004 # The first VirtualHost section is used for requests without a known
1008 # ServerAdmin webmaster@dummy-host.example.com
1009 # DocumentRoot /www/docs/dummy-host.example.com
1010 # ServerName dummy-host.example.com
1011 # ErrorLog logs/dummy-host.example.com-error_log
1012 # CustomLog logs/dummy-host.example.com-access_log common