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