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