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 "@rel_logfiledir@/foo.log"
28 # with ServerRoot set to "@@ServerRoot@@" will be interpreted by the
29 # server as "@@ServerRoot@@/@rel_logfiledir@/foo.log".
32 ### Section 1: Global Environment
34 # The directives in this section affect the overall operation of Apache,
35 # such as the number of concurrent requests it can handle or where it
36 # can find its configuration files.
40 # ServerRoot: The top of the directory tree under which the server's
41 # configuration, error, and log files are kept.
43 # NOTE! If you intend to place this on an NFS (or otherwise network)
44 # mounted filesystem then please read the LockFile documentation (available
45 # at <URL:http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile>);
46 # you will save yourself a lot of trouble.
48 # Do NOT add a slash at the end of the directory path.
50 ServerRoot "@@ServerRoot@@"
53 # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
55 #<IfModule !mpm_winnt.c>
56 #<IfModule !mpm_netware.c>
57 #LockFile @rel_logfiledir@/accept.lock
62 # ScoreBoardFile: File used to store internal server process information.
63 # If unspecified (the default), the scoreboard will be stored in an
64 # anonymous shared memory segment, and will be unavailable to third-party
66 # If specified, ensure that no two invocations of Apache share the same
67 # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
69 #<IfModule !mpm_netware.c>
70 #<IfModule !perchild.c>
71 #ScoreBoardFile @rel_logfiledir@/apache_runtime_status
77 # PidFile: The file in which the server should record its process
78 # identification number when it starts.
80 <IfModule !mpm_netware.c>
81 PidFile @rel_runtimedir@/httpd.pid
85 # Timeout: The number of seconds before receives and sends time out.
90 # KeepAlive: Whether or not to allow persistent connections (more than
91 # one request per connection). Set to "Off" to deactivate.
96 # MaxKeepAliveRequests: The maximum number of requests to allow
97 # during a persistent connection. Set to 0 to allow an unlimited amount.
98 # We recommend you leave this number high, for maximum performance.
100 MaxKeepAliveRequests 100
103 # KeepAliveTimeout: Number of seconds to wait for the next request from the
104 # same client on the same connection.
109 ## Server-Pool Size Regulation (MPM specific)
113 # StartServers: number of server processes to start
114 # MinSpareServers: minimum number of server processes which are kept spare
115 # MaxSpareServers: maximum number of server processes which are kept spare
116 # MaxClients: maximum number of server processes allowed to start
117 # MaxRequestsPerChild: maximum number of requests a server process serves
123 MaxRequestsPerChild 0
127 # StartServers: initial number of server processes to start
128 # MaxClients: maximum number of simultaneous client connections
129 # MinSpareThreads: minimum number of worker threads which are kept spare
130 # MaxSpareThreads: maximum number of worker threads which are kept spare
131 # ThreadsPerChild: constant number of worker threads in each server process
132 # MaxRequestsPerChild: maximum number of requests a server process serves
139 MaxRequestsPerChild 0
143 # NumServers: constant number of server processes
144 # StartThreads: initial number of worker threads in each server process
145 # MinSpareThreads: minimum number of worker threads which are kept spare
146 # MaxSpareThreads: maximum number of worker threads which are kept spare
147 # MaxThreadsPerChild: maximum number of worker threads in each server process
148 # MaxRequestsPerChild: maximum number of connections per server process
149 <IfModule perchild.c>
154 MaxThreadsPerChild 20
155 MaxRequestsPerChild 0
159 # ThreadsPerChild: constant number of worker threads in the server process
160 # MaxRequestsPerChild: maximum number of requests a server process serves
161 <IfModule mpm_winnt.c>
163 MaxRequestsPerChild 0
167 # StartThreads: how many threads do we initially spawn?
168 # MaxClients: max number of threads we can have (1 thread == 1 client)
169 # MaxRequestsPerThread: maximum number of requests each thread will process
173 MaxRequestsPerThread 10000
177 # ThreadStackSize: Stack size allocated for each worker thread
178 # StartThreads: Number of worker threads launched at server startup
179 # MinSpareThreads: Minimum number of idle threads, to handle request spikes
180 # MaxSpareThreads: Maximum number of idle threads
181 # MaxThreads: Maximum number of worker threads alive at the same time
182 # MaxRequestsPerChild: Maximum number of requests a thread serves. It is
183 # recommended that the default value of 0 be set for this
184 # directive on NetWare. This will allow the thread to
185 # continue to service requests indefinitely.
186 <IfModule mpm_netware.c>
187 ThreadStackSize 65536
192 MaxRequestsPerChild 0
196 # StartServers: Number of server processes to maintain
197 # MinSpareThreads: Minimum number of idle threads per process,
198 # to handle request spikes
199 # MaxSpareThreads: Maximum number of idle threads per process
200 # MaxRequestsPerChild: Maximum number of connections per server process
201 <IfModule mpmt_os2.c>
205 MaxRequestsPerChild 0
209 # Listen: Allows you to bind Apache to specific IP addresses and/or
210 # ports, instead of the default. See also the <VirtualHost>
213 # Change this to Listen on specific IP addresses as shown below to
214 # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
216 #Listen 12.34.56.78:80
217 @nonssl_listen_stmt_1@
218 @nonssl_listen_stmt_2@
221 # Dynamic Shared Object (DSO) Support
223 # To be able to use the functionality of a module which was built as a DSO you
224 # have to place corresponding `LoadModule' lines at this location so the
225 # directives contained in it are actually available _before_ they are used.
226 # Statically compiled modules (those listed by `httpd -l') do not need
230 # LoadModule foo_module modules/mod_foo.so
235 # ExtendedStatus controls whether Apache will generate "full" status
236 # information (ExtendedStatus On) or just basic information (ExtendedStatus
237 # Off) when the "server-status" handler is called. The default is Off.
241 ### Section 2: 'Main' server configuration
243 # The directives in this section set up the values used by the 'main'
244 # server, which responds to any requests that aren't handled by a
245 # <VirtualHost> definition. These values also provide defaults for
246 # any <VirtualHost> containers you may define later in the file.
248 # All of these directives may appear inside <VirtualHost> containers,
249 # in which case these default settings will be overridden for the
250 # virtual host being defined.
253 <IfModule !mpm_winnt.c>
254 <IfModule !mpm_netware.c>
256 # If you wish httpd to run as a different user or group, you must run
257 # httpd as root initially and it will switch.
259 # User/Group: The name (or #number) of the user/group to run httpd as.
260 # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
261 # . On HPUX you may not be able to use shared memory as nobody, and the
262 # suggested workaround is to create a user www and use that user.
263 # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
264 # when the value of (unsigned)Group is above 60000;
265 # don't use Group #-1 on these systems!
273 # ServerAdmin: Your address, where problems with the server should be
274 # e-mailed. This address appears on some server-generated pages, such
275 # as error documents. e.g. admin@your-domain.com
277 ServerAdmin you@your.address
280 # ServerName gives the name and port that the server uses to identify itself.
281 # This can often be determined automatically, but we recommend you specify
282 # it explicitly to prevent problems during startup.
284 # If this is not set to valid DNS name for your host, server-generated
285 # redirections will not work. See also the UseCanonicalName directive.
287 # If your host doesn't have a registered DNS name, enter its IP address here.
288 # You will have to access it by its address anyway, and this will make
289 # redirections work in a sensible way.
291 #ServerName new.host.name:80
294 # UseCanonicalName: Determines how Apache constructs self-referencing
295 # URLs and the SERVER_NAME and SERVER_PORT variables.
296 # When set "Off", Apache will use the Hostname and Port supplied
297 # by the client. When set "On", Apache will use the value of the
298 # ServerName directive.
303 # DocumentRoot: The directory out of which you will serve your
304 # documents. By default, all requests are taken from this directory, but
305 # symbolic links and aliases may be used to point to other locations.
307 DocumentRoot "@exp_htdocsdir@"
310 # Each directory to which Apache has access can be configured with respect
311 # to which services and features are allowed and/or disabled in that
312 # directory (and its subdirectories).
314 # First, we configure the "default" to be a very restrictive set of
318 Options FollowSymLinks
323 # Note that from this point forward you must specifically allow
324 # particular features to be enabled - so if something's not working as
325 # you might expect, make sure that you have specifically enabled it
330 # This should be changed to whatever you set DocumentRoot to.
332 <Directory "@exp_htdocsdir@">
335 # Possible values for the Options directive are "None", "All",
336 # or any combination of:
337 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
339 # Note that "MultiViews" must be named *explicitly* --- "Options All"
340 # doesn't give it to you.
342 # The Options directive is both complicated and important. Please see
343 # http://httpd.apache.org/docs-2.1/mod/core.html#options
344 # for more information.
346 Options Indexes FollowSymLinks
349 # AllowOverride controls what directives may be placed in .htaccess files.
350 # It can be "All", "None", or any combination of the keywords:
351 # Options FileInfo AuthConfig Limit
356 # Controls who can get stuff from this server.
364 # UserDir: The name of the directory that is appended onto a user's home
365 # directory if a ~user request is received.
367 <IfModule mod_userdir.c>
372 # Control access to UserDir directories. The following is an example
373 # for a site where these directories are restricted to read-only.
375 #<Directory /home/*/public_html>
376 # AllowOverride FileInfo AuthConfig Limit Indexes
377 # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
378 # <Limit GET POST OPTIONS PROPFIND>
382 # <LimitExcept GET POST OPTIONS PROPFIND>
389 # DirectoryIndex: sets the file that Apache will serve if a directory
392 # The index.html.var file (a type-map) is used to deliver content-
393 # negotiated documents. The MultiViews Option can be used for the
394 # same purpose, but it is much slower.
397 DirectoryIndex index.html index.html.var
401 # AccessFileName: The name of the file to look for in each directory
402 # for additional configuration directives. See also the AllowOverride
405 AccessFileName .htaccess
408 # The following lines prevent .htaccess and .htpasswd files from being
409 # viewed by Web clients.
416 <IfModule mod_mime.c>
418 # TypesConfig describes where the mime.types file (or equivalent) is
421 TypesConfig @rel_sysconfdir@/mime.types
426 # DefaultType is the default MIME type the server will use for a document
427 # if it cannot otherwise determine one, such as from filename extensions.
428 # If your server contains mostly text or HTML documents, "text/plain" is
429 # a good value. If most of your content is binary, such as applications
430 # or images, you may want to use "application/octet-stream" instead to
431 # keep browsers from trying to display binary files as though they are
434 DefaultType text/plain
437 # The mod_mime_magic module allows the server to use various hints from the
438 # contents of the file itself to determine its type. The MIMEMagicFile
439 # directive tells the module where the hint definitions are located.
441 <IfModule mod_mime_magic.c>
442 MIMEMagicFile @rel_sysconfdir@/magic
446 # HostnameLookups: Log the names of clients or just their IP addresses
447 # e.g., www.apache.org (on) or 204.62.129.132 (off).
448 # The default is off because it'd be overall better for the net if people
449 # had to knowingly turn this feature on, since enabling it means that
450 # each client request will result in AT LEAST one lookup request to the
456 # EnableMMAP: Control whether memory-mapping is used to deliver
457 # files (assuming that the underlying OS supports it).
458 # The default is on; turn this off if you serve from NFS-mounted
459 # filesystems. On some systems, turning it off (regardless of
460 # filesystem) can improve performance; for details, please see
461 # http://httpd.apache.org/docs-2.1/mod/core.html#enablemmap
466 # EnableSendfile: Control whether the sendfile kernel support is
467 # used to deliver files (assuming that the OS supports it).
468 # The default is on; turn this off if you serve from NFS-mounted
469 # filesystems. Please see
470 # http://httpd.apache.org/docs-2.1/mod/core.html#enablesendfile
475 # ErrorLog: The location of the error log file.
476 # If you do not specify an ErrorLog directive within a <VirtualHost>
477 # container, error messages relating to that virtual host will be
478 # logged here. If you *do* define an error logfile for a <VirtualHost>
479 # container, that host's errors will be logged there and not here.
481 ErrorLog @rel_logfiledir@/error_log
484 # LogLevel: Control the number of messages logged to the error_log.
485 # Possible values include: debug, info, notice, warn, error, crit,
490 <IfModule mod_log_config.c>
492 # The following directives define some format nicknames for use with
493 # a CustomLog directive (see below).
495 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
496 LogFormat "%h %l %u %t \"%r\" %>s %b" common
497 LogFormat "%{Referer}i -> %U" referer
498 LogFormat "%{User-agent}i" agent
500 # You need to enable mod_logio.c to use %I and %O
501 #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
504 # The location and format of the access logfile (Common Logfile Format).
505 # If you do not define any access logfiles within a <VirtualHost>
506 # container, they will be logged here. Contrariwise, if you *do*
507 # define per-<VirtualHost> access logfiles, transactions will be
508 # logged therein and *not* in this file.
510 CustomLog @rel_logfiledir@/access_log common
513 # If you would like to have agent and referer logfiles, uncomment the
514 # following directives.
516 #CustomLog @rel_logfiledir@/referer_log referer
517 #CustomLog @rel_logfiledir@/agent_log agent
520 # If you prefer a single logfile with access, agent, and referer information
521 # (Combined Logfile Format) you can use the following directive.
523 #CustomLog @rel_logfiledir@/access_log combined
528 # This directive configures what you return as the Server HTTP response
529 # Header. The default is 'Full' which sends information about the OS-Type
530 # and compiled in modules.
531 # Set to one of: Full | OS | Minor | Minimal | Major | Prod
532 # where Full conveys the most information, and Prod the least.
537 # Optionally add a line containing the server version and virtual host
538 # name to server-generated pages (internal error documents, FTP directory
539 # listings, mod_status and mod_info output etc., but not CGI generated
540 # documents or custom error documents).
541 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
542 # Set to one of: On | Off | EMail
546 <IfModule mod_alias.c>
548 # Aliases: Add here as many aliases as you need (with no limit). The format is
549 # Alias fakename realname
551 # Note that if you include a trailing / on fakename then the server will
552 # require it to be present in the URL. So "/icons" isn't aliased in this
553 # example, only "/icons/". If the fakename is slash-terminated, then the
554 # realname must also be slash terminated, and if the fakename omits the
555 # trailing slash, the realname must also omit it.
557 # We include the /icons/ alias for FancyIndexed directory listings. If
558 # you do not use FancyIndexing, you may comment this out.
560 Alias /icons/ "@exp_iconsdir@/"
562 <Directory "@exp_iconsdir@">
563 Options Indexes MultiViews
570 # This should be changed to the ServerRoot/manual/. The alias provides
571 # the manual, even if you choose to move your DocumentRoot. You may
572 # comment this out if you do not care for the documentation.
574 AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "@exp_manualdir@$1"
576 <Directory "@exp_manualdir@">
586 SetEnvIf Request_URI ^/manual/(de|en|fr|ja|ko|ru)/ prefer-language=$1
587 RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
591 # ScriptAlias: This controls which directories contain server scripts.
592 # ScriptAliases are essentially the same as Aliases, except that
593 # documents in the realname directory are treated as applications and
594 # run by the server when requested rather than as documents sent to the
595 # client. The same rules about trailing "/" apply to ScriptAlias
596 # directives as to Alias.
598 ScriptAlias /cgi-bin/ "@exp_cgidir@/"
602 <IfModule mod_cgid.c>
604 # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
605 # for setting UNIX socket for communicating with cgid.
607 #Scriptsock @rel_runtimedir@/cgisock
611 # "@exp_cgidir@" should be changed to whatever your ScriptAliased
612 # CGI directory exists, if you have that configured.
614 <Directory "@exp_cgidir@">
622 # Redirect allows you to tell clients about documents which used to exist in
623 # your server's namespace, but do not anymore. This allows you to tell the
624 # clients where to look for the relocated document.
626 # Redirect permanent /foo http://www.example.com/bar
629 # Directives controlling the display of server-generated directory listings.
631 <IfModule mod_autoindex.c>
634 # IndexOptions: Controls the appearance of server-generated directory
637 IndexOptions FancyIndexing VersionSort
640 # AddIcon* directives tell the server which icon to show for different
641 # files or filename extensions. These are only displayed for
642 # FancyIndexed directories.
644 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
646 AddIconByType (TXT,/icons/text.gif) text/*
647 AddIconByType (IMG,/icons/image2.gif) image/*
648 AddIconByType (SND,/icons/sound2.gif) audio/*
649 AddIconByType (VID,/icons/movie.gif) video/*
651 AddIcon /icons/binary.gif .bin .exe
652 AddIcon /icons/binhex.gif .hqx
653 AddIcon /icons/tar.gif .tar
654 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
655 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
656 AddIcon /icons/a.gif .ps .ai .eps
657 AddIcon /icons/layout.gif .html .shtml .htm .pdf
658 AddIcon /icons/text.gif .txt
659 AddIcon /icons/c.gif .c
660 AddIcon /icons/p.gif .pl .py
661 AddIcon /icons/f.gif .for
662 AddIcon /icons/dvi.gif .dvi
663 AddIcon /icons/uuencoded.gif .uu
664 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
665 AddIcon /icons/tex.gif .tex
666 AddIcon /icons/bomb.gif core
668 AddIcon /icons/back.gif ..
669 AddIcon /icons/hand.right.gif README
670 AddIcon /icons/folder.gif ^^DIRECTORY^^
671 AddIcon /icons/blank.gif ^^BLANKICON^^
674 # DefaultIcon is which icon to show for files which do not have an icon
677 DefaultIcon /icons/unknown.gif
680 # AddDescription allows you to place a short description after a file in
681 # server-generated indexes. These are only displayed for FancyIndexed
683 # Format: AddDescription "description" filename
685 #AddDescription "GZIP compressed document" .gz
686 #AddDescription "tar archive" .tar
687 #AddDescription "GZIP compressed tar archive" .tgz
690 # ReadmeName is the name of the README file the server will look for by
691 # default, and append to directory listings.
693 # HeaderName is the name of a file which should be prepended to
695 ReadmeName README.html
696 HeaderName HEADER.html
699 # IndexIgnore is a set of filenames which directory indexing should ignore
700 # and not include in the listing. Shell-style wildcarding is permitted.
702 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
705 <IfModule mod_mime.c>
707 # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+)
708 # uncompress information on the fly. Note: Not all browsers support
709 # this. Despite the name similarity, the following Add* directives have
710 # nothing to do with the FancyIndexing customization directives above.
712 #AddEncoding x-compress Z
713 #AddEncoding x-gzip gz tgz
716 # DefaultLanguage and AddLanguage allows you to specify the language of
717 # a document. You can then use content negotiation to give a browser a
718 # file in a language the user can understand.
720 # Specify a default language. This means that all data
721 # going out without a specific language tag (see below) will
722 # be marked with this one. You probably do NOT want to set
723 # this unless you are sure it is correct for all cases.
725 # * It is generally better to not mark a page as
726 # * being a certain language than marking it with the wrong
731 # Note 1: The suffix does not have to be the same as the language
732 # keyword --- those with documents in Polish (whose net-standard
733 # language code is pl) may wish to use "AddLanguage pl .po" to
734 # avoid the ambiguity with the common suffix for perl scripts.
736 # Note 2: The example entries below illustrate that in some cases
737 # the two character 'Language' abbreviation is not identical to
738 # the two character 'Country' code for its country,
739 # E.g. 'Danmark/dk' versus 'Danish/da'.
741 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
742 # specifier. There is 'work in progress' to fix this and get
743 # the reference data for rfc1766 cleaned up.
745 # Danish (da) - Dutch (nl) - English (en) - Estonian (et)
746 # French (fr) - German (de) - Greek-Modern (el)
747 # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko)
748 # Portugese (pt) - Luxembourgeois* (ltz)
749 # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
750 # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
751 # Russian (ru) - Croatian (hr)
768 AddLanguage pt-br .pt-br
773 AddLanguage cs .cz .cs
775 AddLanguage zh-CN .zh-cn
776 AddLanguage zh-TW .zh-tw
781 <IfModule mod_negotiation.c>
783 # LanguagePriority allows you to give precedence to some languages
784 # in case of a tie during content negotiation.
786 # Just list the languages in decreasing order of preference. We have
787 # more or less alphabetized them here. You probably want to change this.
789 LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
792 # ForceLanguagePriority allows you to serve a result page rather than
793 # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
794 # [in case no accepted languages matched the available variants]
796 ForceLanguagePriority Prefer Fallback
800 <IfModule mod_mime.c>
802 # Specify a default charset for all pages sent out. This is
803 # always a good idea and opens the door for future internationalisation
804 # of your web site, should you ever want it. Specifying it as
805 # a default does little harm; as the standard dictates that a page
806 # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
807 # are merely stating the obvious. There are also some security
808 # reasons in browsers, related to javascript and URL parsing
809 # which encourage you to always set a default char set.
811 AddDefaultCharset ISO-8859-1
814 # Commonly used filename extensions to character sets. You probably
815 # want to avoid clashes with the language extensions, unless you
816 # are good at carefully testing your setup after each change.
817 # See http://www.iana.org/assignments/character-sets for the
818 # official list of charset names and their respective RFCs.
820 AddCharset ISO-8859-1 .iso8859-1 .latin1
821 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
822 AddCharset ISO-8859-3 .iso8859-3 .latin3
823 AddCharset ISO-8859-4 .iso8859-4 .latin4
824 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
825 AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
826 AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
827 AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
828 AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
829 AddCharset ISO-2022-JP .iso2022-jp .jis
830 AddCharset ISO-2022-KR .iso2022-kr .kis
831 AddCharset ISO-2022-CN .iso2022-cn .cis
832 AddCharset Big5 .Big5 .big5
833 # For russian, more than one charset is used (depends on client, mostly):
834 AddCharset WINDOWS-1251 .cp-1251 .win-1251
835 AddCharset CP866 .cp866
836 AddCharset KOI8-r .koi8-r .koi8-ru
837 AddCharset KOI8-ru .koi8-uk .ua
838 AddCharset ISO-10646-UCS-2 .ucs2
839 AddCharset ISO-10646-UCS-4 .ucs4
840 AddCharset UTF-8 .utf8
842 # The set below does not map to a specific (iso) standard
843 # but works on a fairly wide range of browsers. Note that
844 # capitalization actually matters (it should not, but it
845 # does for some browsers).
847 # See http://www.iana.org/assignments/character-sets
848 # for a list of sorts. But browsers support few.
850 AddCharset GB2312 .gb2312 .gb
851 AddCharset utf-7 .utf7
852 AddCharset utf-8 .utf8
853 AddCharset big5 .big5 .b5
854 AddCharset EUC-TW .euc-tw
855 AddCharset EUC-JP .euc-jp
856 AddCharset EUC-KR .euc-kr
857 AddCharset shift_jis .sjis
860 # AddType allows you to add to or override the MIME configuration
861 # file mime.types for specific file types.
863 AddType application/x-tar .tgz
864 AddType image/x-icon .ico
867 # AddHandler allows you to map certain file extensions to "handlers":
868 # actions unrelated to filetype. These can be either built into the server
869 # or added with the Action directive (see below)
871 # To use CGI scripts outside of ScriptAliased directories:
872 # (You will also need to add "ExecCGI" to the "Options" directive.)
874 #AddHandler cgi-script .cgi
877 # For files that include their own HTTP headers:
879 #AddHandler send-as-is asis
882 # For server-parsed imagemap files:
884 #AddHandler imap-file map
887 # For type maps (negotiated resources):
888 # (This is enabled by default to allow the Apache "It Worked" page
889 # to be distributed in multiple languages.)
891 AddHandler type-map var
894 # Filters allow you to process content before it is sent to the client.
896 # To parse .shtml files for server-side includes (SSI):
897 # (You will also need to add "Includes" to the "Options" directive.)
899 #AddType text/html .shtml
900 #AddOutputFilter INCLUDES .shtml
904 # Action lets you define media types that will execute a script whenever
905 # a matching file is called. This eliminates the need for repeated URL
906 # pathnames for oft-used CGI file processors.
907 # Format: Action media/type /cgi-script/location
908 # Format: Action handler-name /cgi-script/location
912 # Customizable error responses come in three flavors:
913 # 1) plain text 2) local redirects 3) external redirects
916 #ErrorDocument 500 "The server made a boo boo."
917 #ErrorDocument 404 /missing.html
918 #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
919 #ErrorDocument 402 http://www.example.com/subscription_info.html
923 # Putting this all together, we can internationalize error responses.
925 # We use Alias to redirect any /error/HTTP_<error>.html.var response to
926 # our collection of by-error message multi-language collections. We use
927 # includes to substitute the appropriate text.
929 # You can modify the messages' appearance without changing any of the
930 # default HTTP_<error>.html.var files by adding the line:
932 # Alias /error/include/ "/your/include/path/"
934 # which allows you to create your own set of files by starting with the
935 # @exp_errordir@/include/ files and copying them to /your/include/path/,
936 # even on a per-VirtualHost basis. The default include files will display
937 # your Apache version number and your ServerAdmin email address regardless
938 # of the setting of ServerSignature.
940 # The internationalized error documents require mod_alias, mod_include
941 # and mod_negotiation. To activate them, uncomment the following 30 lines.
943 # Alias /error/ "@exp_errordir@/"
945 # <Directory "@exp_errordir@">
947 # Options IncludesNoExec
948 # AddOutputFilter Includes html
949 # AddHandler type-map var
952 # LanguagePriority en cs de es fr it nl sv pt-br ro
953 # ForceLanguagePriority Prefer Fallback
956 # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
957 # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
958 # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
959 # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
960 # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
961 # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
962 # ErrorDocument 410 /error/HTTP_GONE.html.var
963 # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
964 # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
965 # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
966 # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
967 # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
968 # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
969 # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
970 # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
971 # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
972 # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
974 <IfModule mod_setenvif.c>
976 # The following directives modify normal HTTP response behavior to
977 # handle known problems with browser implementations.
979 BrowserMatch "Mozilla/2" nokeepalive
980 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
981 BrowserMatch "RealPlayer 4\.0" force-response-1.0
982 BrowserMatch "Java/1\.0" force-response-1.0
983 BrowserMatch "JDK/1\.0" force-response-1.0
986 # The following directive disables redirects on non-GET requests for
987 # a directory that does not include the trailing slash. This fixes a
988 # problem with Microsoft WebFolders which does not appropriately handle
989 # redirects for folders with DAV methods.
990 # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
992 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
993 BrowserMatch "^WebDrive" redirect-carefully
994 BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
995 BrowserMatch "^gnome-vfs/1.0" redirect-carefully
998 <IfModule mod_status.c>
1000 # Allow server status reports generated by mod_status,
1001 # with the URL of http://servername/server-status
1002 # Change the ".example.com" to match your domain to enable.
1004 #<Location /server-status>
1005 # SetHandler server-status
1008 # Allow from .example.com
1012 <IfModule mod_info.c>
1014 # Allow remote server configuration reports, with the URL of
1015 # http://servername/server-info (requires that mod_info.c be loaded).
1016 # Change the ".example.com" to match your domain to enable.
1018 #<Location /server-info>
1019 # SetHandler server-info
1022 # Allow from .example.com
1027 # Bring in additional module-specific configurations
1029 <IfModule mod_ssl.c>
1030 Include @rel_sysconfdir@/ssl.conf
1034 ### Section 3: Virtual Hosts
1036 # VirtualHost: If you want to maintain multiple domains/hostnames on your
1037 # machine you can setup VirtualHost containers for them. Most configurations
1038 # use only name-based virtual hosts so the server doesn't need to worry about
1039 # IP addresses. This is indicated by the asterisks in the directives below.
1041 # Please see the documentation at
1042 # <URL:http://httpd.apache.org/docs-2.1/vhosts/>
1043 # for further details before you try to setup virtual hosts.
1045 # You may use the command line option '-S' to verify your virtual host
1049 # Use name-based virtual hosting.
1054 # VirtualHost example:
1055 # Almost any Apache directive may go into a VirtualHost container.
1056 # The first VirtualHost section is used for requests without a known
1060 # ServerAdmin webmaster@dummy-host.example.com
1061 # DocumentRoot /www/docs/dummy-host.example.com
1062 # ServerName dummy-host.example.com
1063 # ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
1064 # CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common