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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (show annotations) (download)
Sun Feb 13 02:05:40 2005 UTC (9 years, 2 months ago) by vericgar
File MIME type: text/plain
File size: 36426 byte(s)
Fix for DirectoryIndex to work with suggested solution of bug #50611

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