Debian Codegraph @

t/httpd.conf-dist

raw
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://www.apache.org/docs/> 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 # After this file is processed, the server will look for and process
14 # @@ServerRoot@@/conf/srm.conf and then @@ServerRoot@@/conf/access.conf
15 # unless you have overridden these with ResourceConfig and/or
16 # AccessConfig directives here.
17 #
18 # The configuration directives are grouped into three basic sections:
19 # 1. Directives that control the operation of the Apache server process as a
20 # whole (the 'global environment').
21 # 2. Directives that define the parameters of the 'main' or 'default' server,
22 # which responds to requests that aren't handled by a virtual host.
23 # These directives also provide default values for the settings
24 # of all virtual hosts.
25 # 3. Settings for virtual hosts, which allow Web requests to be sent to
26 # different IP addresses or hostnames and have them handled by the
27 # same Apache server process.
28 #
29 # Configuration and logfile names: If the filenames you specify for many
30 # of the server's control files begin with "/" (or "drive:/" for Win32), the
31 # server will use that explicit path. If the filenames do *not* begin
32 # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
33 # with ServerRoot set to "/usr/local/apache" will be interpreted by the
34 # server as "/usr/local/apache/logs/foo.log".
35 #
36
37 ### Section 1: Global Environment
38 #
39 # The directives in this section affect the overall operation of Apache,
40 # such as the number of concurrent requests it can handle or where it
41 # can find its configuration files.
42 #
43
44 #
45 # ServerType is either inetd, or standalone. Inetd mode is only supported on
46 # Unix platforms.
47 #
48 ServerType standalone
49
50 #
51 # ServerRoot: The top of the directory tree under which the server's
52 # configuration, error, and log files are kept.
53 #
54 # NOTE! If you intend to place this on an NFS (or otherwise network)
55 # mounted filesystem then please read the LockFile documentation
56 # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
57 # you will save yourself a lot of trouble.
58 #
59 # Do NOT add a slash at the end of the directory path.
60 #
61 ServerRoot "@@ServerRoot@@"
62
63 #
64 # The LockFile directive sets the path to the lockfile used when Apache
65 # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
66 # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
67 # its default value. The main reason for changing it is if the logs
68 # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
69 # DISK. The PID of the main server process is automatically appended to
70 # the filename.
71 #
72 #LockFile logs/accept.lock
73
74 #
75 # PidFile: The file in which the server should record its process
76 # identification number when it starts.
77 #
78 PidFile logs/httpd.pid
79
80 #
81 # ScoreBoardFile: File used to store internal server process information.
82 # Not all architectures require this. But if yours does (you'll know because
83 # this file will be created when you run Apache) then you *must* ensure that
84 # no two invocations of Apache share the same scoreboard file.
85 #
86 ScoreBoardFile logs/apache_runtime_status
87
88 #
89 # In the standard configuration, the server will process this file,
90 # srm.conf, and access.conf in that order. The latter two files are
91 # now distributed empty, as it is recommended that all directives
92 # be kept in a single file for simplicity. The commented-out values
93 # below are the built-in defaults. You can have the server ignore
94 # these files altogether by using "/dev/null" (for Unix) or
95 # "nul" (for Win32) for the arguments to the directives.
96 #
97 #ResourceConfig conf/srm.conf
98 #AccessConfig conf/access.conf
99
100 #
101 # Timeout: The number of seconds before receives and sends time out.
102 #
103 Timeout 300
104
105 #
106 # KeepAlive: Whether or not to allow persistent connections (more than
107 # one request per connection). Set to "Off" to deactivate.
108 #
109 KeepAlive On
110
111 #
112 # MaxKeepAliveRequests: The maximum number of requests to allow
113 # during a persistent connection. Set to 0 to allow an unlimited amount.
114 # We recommend you leave this number high, for maximum performance.
115 #
116 MaxKeepAliveRequests 100
117
118 #
119 # KeepAliveTimeout: Number of seconds to wait for the next request from the
120 # same client on the same connection.
121 #
122 KeepAliveTimeout 15
123
124 #
125 # Server-pool size regulation. Rather than making you guess how many
126 # server processes you need, Apache dynamically adapts to the load it
127 # sees --- that is, it tries to maintain enough server processes to
128 # handle the current load, plus a few spare servers to handle transient
129 # load spikes (e.g., multiple simultaneous requests from a single
130 # Netscape browser).
131 #
132 # It does this by periodically checking how many servers are waiting
133 # for a request. If there are fewer than MinSpareServers, it creates
134 # a new spare. If there are more than MaxSpareServers, some of the
135 # spares die off. The default values are probably OK for most sites.
136 #
137 MinSpareServers 5
138 MaxSpareServers 10
139
140 #
141 # Number of servers to start initially --- should be a reasonable ballpark
142 # figure.
143 #
144 StartServers 5
145
146 #
147 # Limit on total number of servers running, i.e., limit on the number
148 # of clients who can simultaneously connect --- if this limit is ever
149 # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
150 # It is intended mainly as a brake to keep a runaway server from taking
151 # the system with it as it spirals down...
152 #
153 MaxClients 150
154
155 #
156 # MaxRequestsPerChild: the number of requests each child process is
157 # allowed to process before the child dies. The child will exit so
158 # as to avoid problems after prolonged use when Apache (and maybe the
159 # libraries it uses) leak memory or other resources. On most systems, this
160 # isn't really needed, but a few (such as Solaris) do have notable leaks
161 # in the libraries. For these platforms, set to something like 10000
162 # or so; a setting of 0 means unlimited.
163 #
164 # NOTE: This value does not include keepalive requests after the initial
165 # request per connection. For example, if a child process handles
166 # an initial request and 10 subsequent "keptalive" requests, it
167 # would only count as 1 request towards this limit.
168 #
169 MaxRequestsPerChild 0
170
171 #
172 # Listen: Allows you to bind Apache to specific IP addresses and/or
173 # ports, in addition to the default. See also the <VirtualHost>
174 # directive.
175 #
176 #Listen 3000
177 #Listen 12.34.56.78:80
178
179 #
180 # BindAddress: You can support virtual hosts with this option. This directive
181 # is used to tell the server which IP address to listen to. It can either
182 # contain "*", an IP address, or a fully qualified Internet domain name.
183 # See also the <VirtualHost> and Listen directives.
184 #
185 #BindAddress *
186
187 #
188 # Dynamic Shared Object (DSO) Support
189 #
190 # To be able to use the functionality of a module which was built as a DSO you
191 # have to place corresponding `LoadModule' lines at this location so the
192 # directives contained in it are actually available _before_ they are used.
193 # Please read the file README.DSO in the Apache 1.3 distribution for more
194 # details about the DSO mechanism and run `httpd -l' for the list of already
195 # built-in (statically linked and thus always available) modules in your httpd
196 # binary.
197 #
198 # Note: The order is which modules are loaded is important. Don't change
199 # the order below without expert advice.
200 #
201 # Example:
202 # LoadModule foo_module libexec/mod_foo.so
203
204 #
205 # ExtendedStatus controls whether Apache will generate "full" status
206 # information (ExtendedStatus On) or just basic information (ExtendedStatus
207 # Off) when the "server-status" handler is called. The default is Off.
208 #
209 #ExtendedStatus On
210
211 ### Section 2: 'Main' server configuration
212 #
213 # The directives in this section set up the values used by the 'main'
214 # server, which responds to any requests that aren't handled by a
215 # <VirtualHost> definition. These values also provide defaults for
216 # any <VirtualHost> containers you may define later in the file.
217 #
218 # All of these directives may appear inside <VirtualHost> containers,
219 # in which case these default settings will be overridden for the
220 # virtual host being defined.
221 #
222
223 #
224 # If your ServerType directive (set earlier in the 'Global Environment'
225 # section) is set to "inetd", the next few directives don't have any
226 # effect since their settings are defined by the inetd configuration.
227 # Skip ahead to the ServerAdmin directive.
228 #
229
230 #
231 # Port: The port to which the standalone server listens. For
232 # ports < 1023, you will need httpd to be run as root initially.
233 #
234 Port 80
235
236 #
237 # If you wish httpd to run as a different user or group, you must run
238 # httpd as root initially and it will switch.
239 #
240 # User/Group: The name (or #number) of the user/group to run httpd as.
241 # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
242 # . On HPUX you may not be able to use shared memory as nobody, and the
243 # suggested workaround is to create a user www and use that user.
244 # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
245 # when the value of (unsigned)Group is above 60000;
246 # don't use Group #-1 on these systems!
247 #
248 User nobody
249 Group #-1
250
251 #
252 # ServerAdmin: Your address, where problems with the server should be
253 # e-mailed. This address appears on some server-generated pages, such
254 # as error documents.
255 #
256 ServerAdmin [email protected]
257
258 #
259 # ServerName allows you to set a host name which is sent back to clients for
260 # your server if it's different than the one the program would get (i.e., use
261 # "www" instead of the host's real name).
262 #
263 # Note: You cannot just invent host names and hope they work. The name you
264 # define here must be a valid DNS name for your host. If you don't understand
265 # this, ask your network administrator.
266 # If your host doesn't have a registered DNS name, enter its IP address here.
267 # You will have to access it by its address (e.g., http://123.45.67.89/)
268 # anyway, and this will make redirections work in a sensible way.
269 #
270 #ServerName new.host.name
271
272 #
273 # DocumentRoot: The directory out of which you will serve your
274 # documents. By default, all requests are taken from this directory, but
275 # symbolic links and aliases may be used to point to other locations.
276 #
277 DocumentRoot "@@ServerRoot@@/htdocs"
278
279 #
280 # Each directory to which Apache has access, can be configured with respect
281 # to which services and features are allowed and/or disabled in that
282 # directory (and its subdirectories).
283 #
284 # First, we configure the "default" to be a very restrictive set of
285 # permissions.
286 #
287 <Directory />
288 Options FollowSymLinks
289 AllowOverride None
290 </Directory>
291
292 #
293 # Note that from this point forward you must specifically allow
294 # particular features to be enabled - so if something's not working as
295 # you might expect, make sure that you have specifically enabled it
296 # below.
297 #
298
299 #
300 # This should be changed to whatever you set DocumentRoot to.
301 #
302 <Directory "@@ServerRoot@@/htdocs">
303
304 #
305 # This may also be "None", "All", or any combination of "Indexes",
306 # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
307 #
308 # Note that "MultiViews" must be named *explicitly* --- "Options All"
309 # doesn't give it to you.
310 #
311 Options Indexes FollowSymLinks MultiViews
312
313 #
314 # This controls which options the .htaccess files in directories can
315 # override. Can also be "All", or any combination of "Options", "FileInfo",
316 # "AuthConfig", and "Limit"
317 #
318 AllowOverride None
319
320 #
321 # Controls who can get stuff from this server.
322 #
323 Order allow,deny
324 Allow from all
325 </Directory>
326
327 #
328 # UserDir: The name of the directory which is appended onto a user's home
329 # directory if a ~user request is received.
330 #
331 UserDir public_html
332
333 #
334 # Control access to UserDir directories. The following is an example
335 # for a site where these directories are restricted to read-only.
336 #
337 #<Directory /home/*/public_html>
338 # AllowOverride FileInfo AuthConfig Limit
339 # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
340 # <Limit GET POST OPTIONS PROPFIND>
341 # Order allow,deny
342 # Allow from all
343 # </Limit>
344 # <LimitExcept GET POST OPTIONS PROPFIND>
345 # Order deny,allow
346 # Deny from all
347 # </LimitExcept>
348 #</Directory>
349
350 #
351 # DirectoryIndex: Name of the file or files to use as a pre-written HTML
352 # directory index. Separate multiple entries with spaces.
353 #
354 DirectoryIndex index.html
355
356 #
357 # AccessFileName: The name of the file to look for in each directory
358 # for access control information.
359 #
360 AccessFileName .htaccess
361
362 #
363 # The following lines prevent .htaccess files from being viewed by
364 # Web clients. Since .htaccess files often contain authorization
365 # information, access is disallowed for security reasons. Comment
366 # these lines out if you want Web visitors to see the contents of
367 # .htaccess files. If you change the AccessFileName directive above,
368 # be sure to make the corresponding changes here.
369 #
370 # Also, folks tend to use names such as .htpasswd for password
371 # files, so this will protect those as well.
372 #
373 <Files ~ "^\.ht">
374 Order allow,deny
375 Deny from all
376 </Files>
377
378 #
379 # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
380 # document that was negotiated on the basis of content. This asks proxy
381 # servers not to cache the document. Uncommenting the following line disables
382 # this behavior, and proxies will be allowed to cache the documents.
383 #
384 #CacheNegotiatedDocs
385
386 #
387 # UseCanonicalName: (new for 1.3) With this setting turned on, whenever
388 # Apache needs to construct a self-referencing URL (a URL that refers back
389 # to the server the response is coming from) it will use ServerName and
390 # Port to form a "canonical" name. With this setting off, Apache will
391 # use the hostname:port that the client supplied, when possible. This
392 # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
393 #
394 UseCanonicalName On
395
396 #
397 # TypesConfig describes where the mime.types file (or equivalent) is
398 # to be found.
399 #
400 TypesConfig conf/mime.types
401
402 #
403 # DefaultType is the default MIME type the server will use for a document
404 # if it cannot otherwise determine one, such as from filename extensions.
405 # If your server contains mostly text or HTML documents, "text/plain" is
406 # a good value. If most of your content is binary, such as applications
407 # or images, you may want to use "application/octet-stream" instead to
408 # keep browsers from trying to display binary files as though they are
409 # text.
410 #
411 DefaultType text/plain
412
413 #
414 # The mod_mime_magic module allows the server to use various hints from the
415 # contents of the file itself to determine its type. The MIMEMagicFile
416 # directive tells the module where the hint definitions are located.
417 # mod_mime_magic is not part of the default server (you have to add
418 # it yourself with a LoadModule [see the DSO paragraph in the 'Global
419 # Environment' section], or recompile the server and include mod_mime_magic
420 # as part of the configuration), so it's enclosed in an <IfModule> container.
421 # This means that the MIMEMagicFile directive will only be processed if the
422 # module is part of the server.
423 #
424 <IfModule mod_mime_magic.c>
425 MIMEMagicFile conf/magic
426 </IfModule>
427
428 #
429 # HostnameLookups: Log the names of clients or just their IP addresses
430 # e.g., www.apache.org (on) or 204.62.129.132 (off).
431 # The default is off because it'd be overall better for the net if people
432 # had to knowingly turn this feature on, since enabling it means that
433 # each client request will result in AT LEAST one lookup request to the
434 # nameserver.
435 #
436 HostnameLookups Off
437
438 #
439 # ErrorLog: The location of the error log file.
440 # If you do not specify an ErrorLog directive within a <VirtualHost>
441 # container, error messages relating to that virtual host will be
442 # logged here. If you *do* define an error logfile for a <VirtualHost>
443 # container, that host's errors will be logged there and not here.
444 #
445 ErrorLog logs/error_log
446
447 #
448 # LogLevel: Control the number of messages logged to the error_log.
449 # Possible values include: debug, info, notice, warn, error, crit,
450 # alert, emerg.
451 #
452 LogLevel warn
453
454 #
455 # The following directives define some format nicknames for use with
456 # a CustomLog directive (see below).
457 #
458 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
459 LogFormat "%h %l %u %t \"%r\" %>s %b" common
460 LogFormat "%{Referer}i -> %U" referer
461 LogFormat "%{User-agent}i" agent
462
463 #
464 # The location and format of the access logfile (Common Logfile Format).
465 # If you do not define any access logfiles within a <VirtualHost>
466 # container, they will be logged here. Contrariwise, if you *do*
467 # define per-<VirtualHost> access logfiles, transactions will be
468 # logged therein and *not* in this file.
469 #
470 CustomLog logs/access_log common
471
472 #
473 # If you would like to have agent and referer logfiles, uncomment the
474 # following directives.
475 #
476 #CustomLog logs/referer_log referer
477 #CustomLog logs/agent_log agent
478
479 #
480 # If you prefer a single logfile with access, agent, and referer information
481 # (Combined Logfile Format) you can use the following directive.
482 #
483 #CustomLog logs/access_log combined
484
485 #
486 # Optionally add a line containing the server version and virtual host
487 # name to server-generated pages (error documents, FTP directory listings,
488 # mod_status and mod_info output etc., but not CGI generated documents).
489 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
490 # Set to one of: On | Off | EMail
491 #
492 ServerSignature On
493
494 #
495 # Aliases: Add here as many aliases as you need (with no limit). The format is
496 # Alias fakename realname
497 #
498 # Note that if you include a trailing / on fakename then the server will
499 # require it to be present in the URL. So "/icons" isn't aliased in this
500 # example, only "/icons/"..
501 #
502 Alias /icons/ "@@ServerRoot@@/icons/"
503
504 <Directory "@@ServerRoot@@/icons">
505 Options Indexes MultiViews
506 AllowOverride None
507 Order allow,deny
508 Allow from all
509 </Directory>
510
511 #
512 # ScriptAlias: This controls which directories contain server scripts.
513 # ScriptAliases are essentially the same as Aliases, except that
514 # documents in the realname directory are treated as applications and
515 # run by the server when requested rather than as documents sent to the client.
516 # The same rules about trailing "/" apply to ScriptAlias directives as to
517 # Alias.
518 #
519 ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
520
521 #
522 # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
523 # CGI directory exists, if you have that configured.
524 #
525 <Directory "@@ServerRoot@@/cgi-bin">
526 AllowOverride None
527 Options None
528 Order allow,deny
529 Allow from all
530 </Directory>
531
532 #
533 # Redirect allows you to tell clients about documents which used to exist in
534 # your server's namespace, but do not anymore. This allows you to tell the
535 # clients where to look for the relocated document.
536 # Format: Redirect old-URI new-URL
537 #
538
539 #
540 # Directives controlling the display of server-generated directory listings.
541 #
542
543 #
544 # FancyIndexing is whether you want fancy directory indexing or standard
545 #
546 IndexOptions FancyIndexing
547
548 #
549 # AddIcon* directives tell the server which icon to show for different
550 # files or filename extensions. These are only displayed for
551 # FancyIndexed directories.
552 #
553 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
554
555 AddIconByType (TXT,/icons/text.gif) text/*
556 AddIconByType (IMG,/icons/image2.gif) image/*
557 AddIconByType (SND,/icons/sound2.gif) audio/*
558 AddIconByType (VID,/icons/movie.gif) video/*
559
560 AddIcon /icons/binary.gif .bin .exe
561 AddIcon /icons/binhex.gif .hqx
562 AddIcon /icons/tar.gif .tar
563 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
564 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
565 AddIcon /icons/a.gif .ps .ai .eps
566 AddIcon /icons/layout.gif .html .shtml .htm .pdf
567 AddIcon /icons/text.gif .txt
568 AddIcon /icons/c.gif .c
569 AddIcon /icons/p.gif .pl .py
570 AddIcon /icons/f.gif .for
571 AddIcon /icons/dvi.gif .dvi
572 AddIcon /icons/uuencoded.gif .uu
573 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
574 AddIcon /icons/tex.gif .tex
575 AddIcon /icons/bomb.gif core
576
577 AddIcon /icons/back.gif ..
578 AddIcon /icons/hand.right.gif README
579 AddIcon /icons/folder.gif ^^DIRECTORY^^
580 AddIcon /icons/blank.gif ^^BLANKICON^^
581
582 #
583 # DefaultIcon is which icon to show for files which do not have an icon
584 # explicitly set.
585 #
586 DefaultIcon /icons/unknown.gif
587
588 #
589 # AddDescription allows you to place a short description after a file in
590 # server-generated indexes. These are only displayed for FancyIndexed
591 # directories.
592 # Format: AddDescription "description" filename
593 #
594 #AddDescription "GZIP compressed document" .gz
595 #AddDescription "tar archive" .tar
596 #AddDescription "GZIP compressed tar archive" .tgz
597
598 #
599 # ReadmeName is the name of the README file the server will look for by
600 # default, and append to directory listings.
601 #
602 # HeaderName is the name of a file which should be prepended to
603 # directory indexes.
604 #
605 # The server will first look for name.html and include it if found.
606 # If name.html doesn't exist, the server will then look for name.txt
607 # and include it as plaintext if found.
608 #
609 ReadmeName README
610 HeaderName HEADER
611
612 #
613 # IndexIgnore is a set of filenames which directory indexing should ignore
614 # and not include in the listing. Shell-style wildcarding is permitted.
615 #
616 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
617
618 #
619 # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
620 # information on the fly. Note: Not all browsers support this.
621 # Despite the name similarity, the following Add* directives have nothing
622 # to do with the FancyIndexing customization directives above.
623 #
624 AddEncoding x-compress Z
625 AddEncoding x-gzip gz tgz
626
627 #
628 # AddLanguage allows you to specify the language of a document. You can
629 # then use content negotiation to give a browser a file in a language
630 # it can understand.
631 #
632 # Note 1: The suffix does not have to be the same as the language
633 # keyword --- those with documents in Polish (whose net-standard
634 # language code is pl) may wish to use "AddLanguage pl .po" to
635 # avoid the ambiguity with the common suffix for perl scripts.
636 #
637 # Note 2: The example entries below illustrate that in quite
638 # some cases the two character 'Language' abbriviation is not
639 # identical to the two character 'Country' code for it's country,
640 # E.g. 'Danmark/dk' versus 'Danish/da'.
641 #
642 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
643 # specifier. But there is 'work in progress' to fix this and get
644 # the reference data for rfc1766 cleaned up.
645 #
646 # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
647 # French (fr) - German (de) - Greek-Modern (el)
648 # Italian (it) -Portugese (pt) - Luxembourgeois* (ltz)
649 # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
650 #
651 AddLanguage da .dk
652 AddLanguage nl .nl
653 AddLanguage en .en
654 AddLanguage et .ee
655 AddLanguage fr .fr
656 AddLanguage de .de
657 AddLanguage el .el
658 AddLanguage it .it
659 AddLanguage pt .pt
660 AddLanguage ltz .lu
661 AddLanguage ca .ca
662 AddLanguage es .es
663 AddLanguage sv .se
664 AddLanguage cz .cz
665
666 # LanguagePriority allows you to give precedence to some languages
667 # in case of a tie during content negotiation.
668 #
669 # Just list the languages in decreasing order of preference. We have
670 # more or less alphabetized them here. You probably want to change this.
671 #
672 LanguagePriority en da nl et fr de \
673 el it pt ltz ca es sv
674
675 #
676 # AddType allows you to tweak mime.types without actually editing it, or to
677 # make certain files to be certain types.
678 #
679 # For example, the PHP 3.x module (not part of the Apache distribution - see
680 # http://www.php.net) will typically use:
681 #
682 #AddType application/x-httpd-php3 .php3
683 #AddType application/x-httpd-php3-source .phps
684 #
685 # And for PHP 4.x, use:
686 #
687 #AddType application/x-httpd-php .php
688 #AddType application/x-httpd-php-source .phps
689
690 AddType application/x-tar .tgz
691
692 #
693 # AddHandler allows you to map certain file extensions to "handlers",
694 # actions unrelated to filetype. These can be either built into the server
695 # or added with the Action command (see below)
696 #
697 # If you want to use server side includes, or CGI outside
698 # ScriptAliased directories, uncomment the following lines.
699 #
700 # To use CGI scripts:
701 #
702 #AddHandler cgi-script .cgi
703
704 #
705 # To use server-parsed HTML files
706 #
707 #AddType text/html .shtml
708 #AddHandler server-parsed .shtml
709
710 #
711 # Uncomment the following line to enable Apache's send-asis HTTP file
712 # feature
713 #
714 #AddHandler send-as-is asis
715
716 #
717 # If you wish to use server-parsed imagemap files, use
718 #
719 #AddHandler imap-file map
720
721 #
722 # To enable type maps, you might want to use
723 #
724 #AddHandler type-map var
725
726 #
727 # Action lets you define media types that will execute a script whenever
728 # a matching file is called. This eliminates the need for repeated URL
729 # pathnames for oft-used CGI file processors.
730 # Format: Action media/type /cgi-script/location
731 # Format: Action handler-name /cgi-script/location
732 #
733
734 #
735 # MetaDir: specifies the name of the directory in which Apache can find
736 # meta information files. These files contain additional HTTP headers
737 # to include when sending the document
738 #
739 #MetaDir .web
740
741 #
742 # MetaSuffix: specifies the file name suffix for the file containing the
743 # meta information.
744 #
745 #MetaSuffix .meta
746
747 #
748 # Customizable error response (Apache style)
749 # these come in three flavors
750 #
751 # 1) plain text
752 #ErrorDocument 500 "The server made a boo boo.
753 # n.b. the (") marks it as text, it does not get output
754 #
755 # 2) local redirects
756 #ErrorDocument 404 /missing.html
757 # to redirect to local URL /missing.html
758 #ErrorDocument 404 /cgi-bin/missing_handler.pl
759 # N.B.: You can redirect to a script or a document using server-side-includes.
760 #
761 # 3) external redirects
762 #ErrorDocument 402 http://some.other_server.com/subscription_info.html
763 # N.B.: Many of the environment variables associated with the original
764 # request will *not* be available to such a script.
765
766 #
767 # The following directives modify normal HTTP response behavior.
768 # The first directive disables keepalive for Netscape 2.x and browsers that
769 # spoof it. There are known problems with these browser implementations.
770 # The second directive is for Microsoft Internet Explorer 4.0b2
771 # which has a broken HTTP/1.1 implementation and does not properly
772 # support keepalive when it is used on 301 or 302 (redirect) responses.
773 #
774 BrowserMatch "Mozilla/2" nokeepalive
775 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
776
777 #
778 # The following directive disables HTTP/1.1 responses to browsers which
779 # are in violation of the HTTP/1.0 spec by not being able to grok a
780 # basic 1.1 response.
781 #
782 BrowserMatch "RealPlayer 4\.0" force-response-1.0
783 BrowserMatch "Java/1\.0" force-response-1.0
784 BrowserMatch "JDK/1\.0" force-response-1.0
785
786 #
787 # Allow server status reports, with the URL of http://servername/server-status
788 # Change the ".your_domain.com" to match your domain to enable.
789 #
790 #<Location /server-status>
791 # SetHandler server-status
792 # Order deny,allow
793 # Deny from all
794 # Allow from .your_domain.com
795 #</Location>
796
797 #
798 # Allow remote server configuration reports, with the URL of
799 # http://servername/server-info (requires that mod_info.c be loaded).
800 # Change the ".your_domain.com" to match your domain to enable.
801 #
802 #<Location /server-info>
803 # SetHandler server-info
804 # Order deny,allow
805 # Deny from all
806 # Allow from .your_domain.com
807 #</Location>
808
809 #
810 # There have been reports of people trying to abuse an old bug from pre-1.1
811 # days. This bug involved a CGI script distributed as a part of Apache.
812 # By uncommenting these lines you can redirect these attacks to a logging
813 # script on phf.apache.org. Or, you can record them yourself, using the script
814 # support/phf_abuse_log.cgi.
815 #
816 #<Location /cgi-bin/phf*>
817 # Deny from all
818 # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
819 #</Location>
820
821 #
822 # Proxy Server directives. Uncomment the following lines to
823 # enable the proxy server:
824 #
825 #<IfModule mod_proxy.c>
826 #ProxyRequests On
827 #
828 #<Directory proxy:*>
829 # Order deny,allow
830 # Deny from all
831 # Allow from .your_domain.com
832 #</Directory>
833
834 #
835 # Enable/disable the handling of HTTP/1.1 "Via:" headers.
836 # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
837 # Set to one of: Off | On | Full | Block
838 #
839 #ProxyVia On
840
841 #
842 # To enable the cache as well, edit and uncomment the following lines:
843 # (no cacheing without CacheRoot)
844 #
845 #CacheRoot "@@ServerRoot@@/proxy"
846 #CacheSize 5
847 #CacheGcInterval 4
848 #CacheMaxExpire 24
849 #CacheLastModifiedFactor 0.1
850 #CacheDefaultExpire 1
851 #NoCache a_domain.com another_domain.edu joes.garage_sale.com
852
853 #</IfModule>
854 # End of proxy directives.
855
856 ### Section 3: Virtual Hosts
857 #
858 # VirtualHost: If you want to maintain multiple domains/hostnames on your
859 # machine you can setup VirtualHost containers for them.
860 # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
861 # for further details before you try to setup virtual hosts.
862 # You may use the command line option '-S' to verify your virtual host
863 # configuration.
864
865 #
866 # If you want to use name-based virtual hosts you need to define at
867 # least one IP address (and port number) for them.
868 #
869 #NameVirtualHost 12.34.56.78:80
870 #NameVirtualHost 12.34.56.78
871
872 #
873 # VirtualHost example:
874 # Almost any Apache directive may go into a VirtualHost container.
875 #
876 #<VirtualHost ip.address.of.host.some_domain.com>
877 # ServerAdmin [email protected]_domain.com
878 # DocumentRoot /www/docs/host.some_domain.com
879 # ServerName host.some_domain.com
880 # ErrorLog logs/host.some_domain.com-error_log
881 # CustomLog logs/host.some_domain.com-access_log common
882 #</VirtualHost>
883
884 #<VirtualHost _default_:*>
885 #</VirtualHost>