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