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