/[apache]/trunk/dist/2.0/conf/httpd.conf
Gentoo

Contents of /trunk/dist/2.0/conf/httpd.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Thu Apr 21 11:06:33 2005 UTC (9 years, 3 months ago) by hollow
File MIME type: text/plain
File size: 39871 byte(s)
fixed 84063

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

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20