1#
2# This is the main Apache server configuration file.  It contains the
3# configuration directives that give the server its instructions.
4# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
5# In particular, see
6# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
7# for a discussion of each configuration directive.
8#
9#
10# Do NOT simply read the instructions in here without understanding
11# what they do.  They're here only as hints or reminders.  If you are unsure
12# consult the online docs. You have been warned.  
13#
14# The configuration directives are grouped into three basic sections:
15#  1. Directives that control the operation of the Apache server process as a
16#     whole (the 'global environment').
17#  2. Directives that define the parameters of the 'main' or 'default' server,
18#     which responds to requests that aren't handled by a virtual host.
19#     These directives also provide default values for the settings
20#     of all virtual hosts.
21#  3. Settings for virtual hosts, which allow Web requests to be sent to
22#     different IP addresses or hostnames and have them handled by the
23#     same Apache server process.
24#
25# Configuration and logfile names: If the filenames you specify for many
26# of the server's control files begin with "/" (or "drive:/" for Win32), the
27# server will use that explicit path.  If the filenames do *not* begin
28# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
29# with ServerRoot set to "/etc/httpd" will be interpreted by the
30# server as "/etc/httpd/logs/foo.log".
31#
32
33### Section 1: Global Environment
34#
35# The directives in this section affect the overall operation of Apache,
36# such as the number of concurrent requests it can handle or where it
37# can find its configuration files.
38#
39
40#
41# Don't give away too much information about all the subcomponents
42# we are running.  Comment out this line if you don't mind remote sites
43# finding out what major optional modules you are running
44ServerTokens OS
45
46#
47# ServerRoot: The top of the directory tree under which the server's
48# configuration, error, and log files are kept.
49#
50# NOTE!  If you intend to place this on an NFS (or otherwise network)
51# mounted filesystem then please read the LockFile documentation
52# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
53# you will save yourself a lot of trouble.
54#
55# Do NOT add a slash at the end of the directory path.
56#
57ServerRoot "/etc/httpd"
58
59#
60# PidFile: The file in which the server should record its process
61# identification number when it starts.
62#
63LockFile "/tmp/WebKit/httpd.lock"
64
65#
66# PidFile: The file in which the server should record its process
67# identification number when it starts.
68#
69PidFile "/tmp/WebKit/httpd.pid"
70
71#
72# ScoreBoardFile: File used to store internal server process information.
73# Not all architectures require this.  But if yours does (you'll know because
74# this file will be  created when you run Apache) then you *must* ensure that
75# no two invocations of Apache share the same scoreboard file.
76#
77ScoreBoardFile "/tmp/WebKit/httpd.scoreboard"
78
79#
80# Timeout: The number of seconds before receives and sends time out.
81#
82Timeout 300
83
84#
85# KeepAlive: Whether or not to allow persistent connections (more than
86# one request per connection). Set to "Off" to deactivate.
87#
88KeepAlive On
89
90#
91# MaxKeepAliveRequests: The maximum number of requests to allow
92# during a persistent connection. Set to 0 to allow an unlimited amount.
93# We recommend you leave this number high, for maximum performance.
94#
95MaxKeepAliveRequests 100
96
97#
98# KeepAliveTimeout: Number of seconds to wait for the next request from the
99# same client on the same connection.
100#
101KeepAliveTimeout 15
102
103MinSpareServers 1
104MaxSpareServers 5
105StartServers 1
106MaxClients 150
107
108##
109## Server-Pool Size Regulation (MPM specific)
110## 
111
112# prefork MPM
113# StartServers: number of server processes to start
114# MinSpareServers: minimum number of server processes which are kept spare
115# MaxSpareServers: maximum number of server processes which are kept spare
116# ServerLimit: maximum value for MaxClients for the lifetime of the server
117# MaxClients: maximum number of server processes allowed to start
118# MaxRequestsPerChild: maximum number of requests a server process serves
119
120# worker MPM
121# StartServers: initial number of server processes to start
122# MaxClients: maximum number of simultaneous client connections
123# MinSpareThreads: minimum number of worker threads which are kept spare
124# MaxSpareThreads: maximum number of worker threads which are kept spare
125# ThreadsPerChild: constant number of worker threads in each server process
126# MaxRequestsPerChild: maximum number of requests a server process serves
127
128MaxRequestsPerChild 100000
129
130#
131# Listen: Allows you to bind Apache to specific IP addresses and/or
132# ports, in addition to the default. See also the <VirtualHost>
133# directive.
134#
135# Change this to Listen on specific IP addresses as shown below to 
136# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
137#
138#Listen 12.34.56.78:80
139Listen 127.0.0.1:8080
140Listen 127.0.0.1:8443
141# We listen to both IPv4 and IPv6 loop-back addresses, but ignore
142# requests to 8000 from random users on network.
143# See https://bugs.webkit.org/show_bug.cgi?id=37104
144Listen [::1]:8000
145Listen [::1]:8080
146Listen [::1]:8443
147
148#
149# Dynamic Shared Object (DSO) Support
150#
151# To be able to use the functionality of a module which was built as a DSO you
152# have to place corresponding `LoadModule' lines at this location so the
153# directives contained in it are actually available _before_ they are used.
154# Statically compiled modules (those listed by `httpd -l') do not need
155# to be loaded here.
156#
157# Example:
158# LoadModule foo_module modules/mod_foo.so
159#
160#LoadModule auth_basic_module modules/mod_auth_basic.so
161#LoadModule auth_digest_module modules/mod_auth_digest.so
162#LoadModule authn_file_module modules/mod_authn_file.so
163#LoadModule authn_alias_module modules/mod_authn_alias.so
164#LoadModule authn_anon_module modules/mod_authn_anon.so
165#LoadModule authn_dbm_module modules/mod_authn_dbm.so
166#LoadModule authn_default_module modules/mod_authn_default.so
167LoadModule authz_host_module modules/mod_authz_host.so
168#LoadModule authz_user_module modules/mod_authz_user.so
169#LoadModule authz_owner_module modules/mod_authz_owner.so
170#LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
171#LoadModule authz_dbm_module modules/mod_authz_dbm.so
172#LoadModule authz_default_module modules/mod_authz_default.so
173#LoadModule ldap_module modules/mod_ldap.so
174#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
175LoadModule include_module modules/mod_include.so
176LoadModule log_config_module modules/mod_log_config.so
177#LoadModule logio_module modules/mod_logio.so
178#LoadModule env_module modules/mod_env.so
179#LoadModule ext_filter_module modules/mod_ext_filter.so
180#LoadModule mime_magic_module modules/mod_mime_magic.so
181#LoadModule expires_module modules/mod_expires.so
182#LoadModule deflate_module modules/mod_deflate.so
183LoadModule headers_module modules/mod_headers.so
184#LoadModule usertrack_module modules/mod_usertrack.so
185#LoadModule setenvif_module modules/mod_setenvif.so
186LoadModule mime_module modules/mod_mime.so
187#LoadModule dav_module modules/mod_dav.so
188#LoadModule status_module modules/mod_status.so
189#LoadModule autoindex_module modules/mod_autoindex.so
190#LoadModule info_module modules/mod_info.so
191#LoadModule dav_fs_module modules/mod_dav_fs.so
192#LoadModule vhost_alias_module modules/mod_vhost_alias.so
193LoadModule negotiation_module modules/mod_negotiation.so
194#LoadModule dir_module modules/mod_dir.so
195LoadModule actions_module modules/mod_actions.so
196#LoadModule speling_module modules/mod_speling.so
197#LoadModule userdir_module modules/mod_userdir.so
198LoadModule alias_module modules/mod_alias.so
199LoadModule rewrite_module modules/mod_rewrite.so
200#LoadModule proxy_module modules/mod_proxy.so
201#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
202#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
203#LoadModule proxy_http_module modules/mod_proxy_http.so
204#LoadModule proxy_connect_module modules/mod_proxy_connect.so
205#LoadModule cache_module modules/mod_cache.so
206#LoadModule suexec_module modules/mod_suexec.so
207#LoadModule disk_cache_module modules/mod_disk_cache.so
208#LoadModule file_cache_module modules/mod_file_cache.so
209#LoadModule mem_cache_module modules/mod_mem_cache.so
210LoadModule cgi_module modules/mod_cgi.so
211LoadModule ssl_module modules/mod_ssl.so
212LoadModule php5_module modules/libphp5.so
213
214#
215# The following modules are not loaded by default:
216#
217#LoadModule cern_meta_module modules/mod_cern_meta.so
218LoadModule asis_module modules/mod_asis.so
219
220#
221# Load config files from the config directory "/etc/httpd/conf.d".
222#
223#Include conf.d/*.conf
224
225#
226# ExtendedStatus controls whether Apache will generate "full" status
227# information (ExtendedStatus On) or just basic information (ExtendedStatus
228# Off) when the "server-status" handler is called. The default is Off.
229#
230#ExtendedStatus On
231
232#
233# If you wish httpd to run as a different user or group, you must run
234# httpd as root initially and it will switch.  
235#
236# User/Group: The name (or #number) of the user/group to run httpd as.
237#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
238#  . On HPUX you may not be able to use shared memory as nobody, and the
239#    suggested workaround is to create a user www and use that user.
240#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
241#  when the value of (unsigned)Group is above 60000; 
242#  don't use Group #-1 on these systems!
243#
244User apache
245Group apache
246
247### Section 2: 'Main' server configuration
248#
249# The directives in this section set up the values used by the 'main'
250# server, which responds to any requests that aren't handled by a
251# <VirtualHost> definition.  These values also provide defaults for
252# any <VirtualHost> containers you may define later in the file.
253#
254# All of these directives may appear inside <VirtualHost> containers,
255# in which case these default settings will be overridden for the
256# virtual host being defined.
257#
258
259#
260# ServerAdmin: Your address, where problems with the server should be
261# e-mailed.  This address appears on some server-generated pages, such
262# as error documents.  e.g. admin@your-domain.com
263#
264ServerAdmin root@localhost
265
266#
267# ServerName gives the name and port that the server uses to identify itself.
268# This can often be determined automatically, but we recommend you specify
269# it explicitly to prevent problems during startup.
270#
271# If this is not set to valid DNS name for your host, server-generated
272# redirections will not work.  See also the UseCanonicalName directive.
273#
274# If your host doesn't have a registered DNS name, enter its IP address here.
275# You will have to access it by its address anyway, and this will make 
276# redirections work in a sensible way.
277#
278ServerName 127.0.0.1
279
280#
281# UseCanonicalName: Determines how Apache constructs self-referencing 
282# URLs and the SERVER_NAME and SERVER_PORT variables.
283# When set "Off", Apache will use the Hostname and Port supplied
284# by the client.  When set "On", Apache will use the value of the
285# ServerName directive.
286#
287UseCanonicalName On
288
289#
290# DocumentRoot: The directory out of which you will serve your
291# documents. By default, all requests are taken from this directory, but
292# symbolic links and aliases may be used to point to other locations.
293#
294#DocumentRoot "/var/www/html"
295
296#
297# Each directory to which Apache has access can be configured with respect
298# to which services and features are allowed and/or disabled in that
299# directory (and its subdirectories). 
300#
301# Note that from this point forward you must specifically allow
302# particular features to be enabled - so if something's not working as
303# you might expect, make sure that you have specifically enabled it
304# below.
305#
306
307#
308# This should be changed to whatever you set DocumentRoot to.
309#
310<Directory />
311
312#
313# Possible values for the Options directive are "None", "All",
314# or any combination of:
315#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
316#
317# Note that "MultiViews" must be named *explicitly* --- "Options All"
318# doesn't give it to you.
319#
320# The Options directive is both complicated and important.  Please see
321# http://httpd.apache.org/docs/2.2/mod/core.html#options
322# for more information.
323#
324    Options Indexes FollowSymLinks MultiViews ExecCGI Includes
325
326#
327# AllowOverride controls what directives may be placed in .htaccess files.
328# It can be "All", "None", or any combination of the keywords:
329#   Options FileInfo AuthConfig Limit
330#
331    AllowOverride All
332
333#
334# Controls who can get stuff from this server.
335#
336    Order allow,deny
337    Allow from all
338
339</Directory>
340
341#
342#
343# Control access to UserDir directories.  The following is an example
344# for a site where these directories are restricted to read-only.
345#
346#<Directory /home/*/public_html>
347#    AllowOverride FileInfo AuthConfig Limit
348#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
349#    <Limit GET POST OPTIONS>
350#        Order allow,deny
351#        Allow from all
352#    </Limit>
353#    <LimitExcept GET POST OPTIONS>
354#        Order deny,allow
355#        Deny from all
356#    </LimitExcept>
357#</Directory>
358
359#
360# DirectoryIndex: sets the file that Apache will serve if a directory
361# is requested.
362#
363# The index.html.var file (a type-map) is used to deliver content-
364# negotiated documents.  The MultiViews Option can be used for the 
365# same purpose, but it is much slower.
366#
367#DirectoryIndex index.html index.html.var
368
369#
370# AccessFileName: The name of the file to look for in each directory
371# for additional configuration directives.  See also the AllowOverride
372# directive.
373#
374AccessFileName .htaccess
375
376#
377# The following lines prevent .htaccess and .htpasswd files from being 
378# viewed by Web clients. 
379#
380<Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
381    Order allow,deny
382    Deny from all
383    Satisfy All
384</Files>
385
386#
387# Apple specific filesystem protection.
388# 
389
390<Files "rsrc">
391    Order allow,deny
392    Deny from all
393    Satisfy All
394</Files>
395
396<Directory  ~ ".*\.\.namedfork">
397    Order allow,deny
398    Deny from all
399    Satisfy All
400</Directory>
401
402#
403# TypesConfig describes where the mime.types file (or equivalent) is
404# to be found.
405#
406TypesConfig /etc/mime.types
407
408#
409# DefaultType is the default MIME type the server will use for a document
410# if it cannot otherwise determine one, such as from filename extensions.
411# If your server contains mostly text or HTML documents, "text/plain" is
412# a good value.  If most of your content is binary, such as applications
413# or images, you may want to use "application/octet-stream" instead to
414# keep browsers from trying to display binary files as though they are
415# text.
416#
417DefaultType text/plain
418
419#
420# HostnameLookups: Log the names of clients or just their IP addresses
421# e.g., www.apache.org (on) or 204.62.129.132 (off).
422# The default is off because it'd be overall better for the net if people
423# had to knowingly turn this feature on, since enabling it means that
424# each client request will result in AT LEAST one lookup request to the
425# nameserver.
426#
427HostnameLookups Off
428
429#
430# EnableMMAP: Control whether memory-mapping is used to deliver
431# files (assuming that the underlying OS supports it).
432# The default is on; turn this off if you serve from NFS-mounted 
433# filesystems.  On some systems, turning it off (regardless of
434# filesystem) can improve performance; for details, please see
435# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
436#
437#EnableMMAP off
438
439#
440# EnableSendfile: Control whether the sendfile kernel support is 
441# used to deliver files (assuming that the OS supports it). 
442# The default is on; turn this off if you serve from NFS-mounted 
443# filesystems.  Please see
444# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
445#
446#EnableSendfile off
447
448#
449# ErrorLog: The location of the error log file.
450# If you do not specify an ErrorLog directive within a <VirtualHost>
451# container, error messages relating to that virtual host will be
452# logged here.  If you *do* define an error logfile for a <VirtualHost>
453# container, that host's errors will be logged there and not here.
454#
455#ErrorLog /tmp/WebKit/error_log
456
457#
458# LogLevel: Control the number of messages logged to the error_log.
459# Possible values include: debug, info, notice, warn, error, crit,
460# alert, emerg.
461#
462LogLevel warn
463
464#
465# The following directives define some format nicknames for use with
466# a CustomLog directive (see below).
467#
468LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
469LogFormat "%h %l %u %t \"%r\" %>s %b" common
470LogFormat "%{Referer}i -> %U" referer
471LogFormat "%{User-agent}i" agent
472
473# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
474# requires the mod_logio module to be loaded.
475#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
476
477#
478# The location and format of the access logfile (Common Logfile Format).
479# If you do not define any access logfiles within a <VirtualHost>
480# container, they will be logged here.  Contrariwise, if you *do*
481# define per-<VirtualHost> access logfiles, transactions will be
482# logged therein and *not* in this file.
483#
484#CustomLog logs/access_log common
485
486#
487# If you would like to have separate agent and referer logfiles, uncomment
488# the following directives.
489#
490#CustomLog logs/referer_log referer
491#CustomLog logs/agent_log agent
492
493#
494# For a single logfile with access, agent, and referer information
495# (Combined Logfile Format), use the following directive:
496#
497#CustomLog logs/access_log combined
498
499#
500# Optionally add a line containing the server version and virtual host
501# name to server-generated pages (internal error documents, FTP directory
502# listings, mod_status and mod_info output etc., but not CGI generated
503# documents or custom error documents).
504# Set to "EMail" to also include a mailto: link to the ServerAdmin.
505# Set to one of:  On | Off | EMail
506#
507ServerSignature On
508
509#
510# Aliases: Add here as many aliases as you need (with no limit). The format is 
511# Alias fakename realname
512#
513# Note that if you include a trailing / on fakename then the server will
514# require it to be present in the URL.  So "/icons" isn't aliased in this
515# example, only "/icons/".  If the fakename is slash-terminated, then the 
516# realname must also be slash terminated, and if the fakename omits the 
517# trailing slash, the realname must also omit it.
518#
519# We include the /icons/ alias for FancyIndexed directory listings.  If you
520# do not use FancyIndexing, you may comment this out.
521#
522#
523# ScriptAlias: This controls which directories contain server scripts.
524# ScriptAliases are essentially the same as Aliases, except that
525# documents in the realname directory are treated as applications and
526# run by the server when requested rather than as documents sent to the client.
527# The same rules about trailing "/" apply to ScriptAlias directives as to
528# Alias.
529#
530
531#
532# Redirect allows you to tell clients about documents which used to exist in
533# your server's namespace, but do not anymore. This allows you to tell the
534# clients where to look for the relocated document.
535# Example:
536# Redirect permanent /foo http://www.example.com/bar
537
538#
539# Directives controlling the display of server-generated directory listings.
540#
541
542#
543# AddDescription allows you to place a short description after a file in
544# server-generated indexes.  These are only displayed for FancyIndexed
545# directories.
546# Format: AddDescription "description" filename
547#
548#AddDescription "GZIP compressed document" .gz
549#AddDescription "tar archive" .tar
550#AddDescription "GZIP compressed tar archive" .tgz
551
552#
553# DefaultLanguage and AddLanguage allows you to specify the language of 
554# a document. You can then use content negotiation to give a browser a 
555# file in a language the user can understand.
556#
557# Specify a default language. This means that all data
558# going out without a specific language tag (see below) will 
559# be marked with this one. You probably do NOT want to set
560# this unless you are sure it is correct for all cases.
561#
562# * It is generally better to not mark a page as 
563# * being a certain language than marking it with the wrong
564# * language!
565#
566# DefaultLanguage nl
567#
568# Note 1: The suffix does not have to be the same as the language
569# keyword --- those with documents in Polish (whose net-standard
570# language code is pl) may wish to use "AddLanguage pl .po" to
571# avoid the ambiguity with the common suffix for perl scripts.
572#
573# Note 2: The example entries below illustrate that in some cases 
574# the two character 'Language' abbreviation is not identical to 
575# the two character 'Country' code for its country,
576# E.g. 'Danmark/dk' versus 'Danish/da'.
577#
578# Note 3: In the case of 'ltz' we violate the RFC by using a three char
579# specifier. There is 'work in progress' to fix this and get
580# the reference data for rfc1766 cleaned up.
581#
582# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
583# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
584# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
585# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
586# Norwegian (no) - Polish (pl) - Portugese (pt)
587# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
588# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
589#
590AddLanguage ca .ca
591AddLanguage cs .cz .cs
592AddLanguage da .dk
593AddLanguage de .de
594AddLanguage el .el
595AddLanguage en .en
596AddLanguage eo .eo
597AddLanguage es .es
598AddLanguage et .et
599AddLanguage fr .fr
600AddLanguage he .he
601AddLanguage hr .hr
602AddLanguage it .it
603AddLanguage ja .ja
604AddLanguage ko .ko
605AddLanguage ltz .ltz
606AddLanguage nl .nl
607AddLanguage nn .nn
608AddLanguage no .no
609AddLanguage pl .po
610AddLanguage pt .pt
611AddLanguage pt-BR .pt-br
612AddLanguage ru .ru
613AddLanguage sv .sv
614AddLanguage zh-CN .zh-cn
615AddLanguage zh-TW .zh-tw
616AddCharset Big5         .Big5    .big5
617AddCharset WINDOWS-1251 .cp-1251
618AddCharset CP866        .cp866
619AddCharset ISO-8859-5   .iso-ru
620AddCharset KOI8-R       .koi8-r
621AddCharset UCS-2        .ucs2
622AddCharset UCS-4        .ucs4
623AddCharset UTF-8        .utf8
624
625#
626# LanguagePriority allows you to give precedence to some languages
627# in case of a tie during content negotiation.
628#
629# Just list the languages in decreasing order of preference. We have
630# more or less alphabetized them here. You probably want to change this.
631#
632<IfModule mod_negotiation.c>
633    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
634</IfModule>
635
636#
637# ForceLanguagePriority allows you to serve a result page rather than
638# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
639# [in case no accepted languages matched the available variants]
640#
641#ForceLanguagePriority Prefer Fallback
642
643#
644# Specify a default charset for all content served; this enables
645# interpretation of all content as UTF-8 by default.  To use the 
646# default browser choice (ISO-8859-1), or to allow the META tags
647# in HTML content to override this choice, comment out this
648# directive:
649#
650#AddDefaultCharset UTF-8
651
652#
653# AddType allows you to add to or override the MIME configuration
654# file mime.types for specific file types.
655#
656#AddType application/x-tar .tgz
657
658#
659# AddEncoding allows you to have certain browsers uncompress
660# information on the fly. Note: Not all browsers support this.
661# Despite the name similarity, the following Add* directives have nothing
662# to do with the FancyIndexing customization directives above.
663#
664AddEncoding x-compress .Z
665AddEncoding x-gzip .gz .tgz
666
667# If the AddEncoding directives above are commented-out, then you
668# probably should define those extensions to indicate media types:
669#
670#AddType application/x-compress .Z
671#AddType application/x-gzip .gz .tgz
672
673#
674#   MIME-types for downloading Certificates and CRLs
675#
676AddType application/x-x509-ca-cert .crt
677AddType application/x-pkcs7-crl    .crl
678
679#
680# AddHandler allows you to map certain file extensions to "handlers":
681# actions unrelated to filetype. These can be either built into the server
682# or added with the Action directive (see below)
683#
684# To use CGI scripts outside of ScriptAliased directories:
685# (You will also need to add "ExecCGI" to the "Options" directive.)
686#
687AddHandler cgi-script .cgi .pl
688
689#
690# Filters allow you to process content before it is sent to the client.
691#
692# To parse .shtml files for server-side includes (SSI):
693# (You will also need to add "Includes" to the "Options" directive.)
694#
695AddType text/html .shtml
696AddOutputFilter INCLUDES .shtml
697
698#
699# For files that include their own HTTP headers:
700#
701AddHandler send-as-is asis
702
703#
704# For type maps (negotiated resources):
705# (This is enabled by default to allow the Apache "It Worked" page
706#  to be distributed in multiple languages.)
707#
708#AddHandler type-map var
709
710#
711# Action lets you define media types that will execute a script whenever
712# a matching file is called. This eliminates the need for repeated URL
713# pathnames for oft-used CGI file processors.
714# Format: Action media/type /cgi-script/location
715# Format: Action handler-name /cgi-script/location
716#
717
718#
719# Customizable error responses come in three flavors:
720# 1) plain text 2) local redirects 3) external redirects
721#
722# Some examples:
723#ErrorDocument 500 "The server made a boo boo."
724#ErrorDocument 404 /missing.html
725#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
726#ErrorDocument 402 http://www.example.com/subscription_info.html
727#
728
729#
730# Putting this all together, we can internationalize error responses.
731#
732# We use Alias to redirect any /error/HTTP_<error>.html.var response to
733# our collection of by-error message multi-language collections.  We use 
734# includes to substitute the appropriate text.
735#
736# You can modify the messages' appearance without changing any of the
737# default HTTP_<error>.html.var files by adding the line:
738#
739#   Alias /error/include/ "/your/include/path/"
740#
741# which allows you to create your own set of files by starting with the
742# /var/www/error/include/ files and
743# copying them to /your/include/path/, even on a per-VirtualHost basis.
744#
745
746#
747# The following directives modify normal HTTP response behavior to
748# handle known problems with browser implementations.
749#
750#BrowserMatch "Mozilla/2" nokeepalive
751#BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
752#BrowserMatch "RealPlayer 4\.0" force-response-1.0
753#BrowserMatch "Java/1\.0" force-response-1.0
754#BrowserMatch "JDK/1\.0" force-response-1.0
755
756#
757# The following directive disables redirects on non-GET requests for
758# a directory that does not include the trailing slash.  This fixes a 
759# problem with Microsoft WebFolders which does not appropriately handle 
760# redirects for folders with DAV methods.
761# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
762#
763#BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
764#BrowserMatch "MS FrontPage" redirect-carefully
765#BrowserMatch "^WebDrive" redirect-carefully
766#BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
767#BrowserMatch "^gnome-vfs/1.0" redirect-carefully
768#BrowserMatch "^XML Spy" redirect-carefully
769#BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
770
771#
772# Allow server status reports generated by mod_status,
773# with the URL of http://servername/server-status
774# Change the ".example.com" to match your domain to enable.
775#
776#<Location /server-status>
777#    SetHandler server-status
778#    Order deny,allow
779#    Deny from all
780#    Allow from .example.com
781#</Location>
782
783#
784# Allow remote server configuration reports, with the URL of
785#  http://servername/server-info (requires that mod_info.c be loaded).
786# Change the ".example.com" to match your domain to enable.
787#
788#<Location /server-info>
789#    SetHandler server-info
790#    Order deny,allow
791#    Deny from all
792#    Allow from .example.com
793#</Location>
794
795#
796# Proxy Server directives. Uncomment the following lines to
797# enable the proxy server:
798#
799#<IfModule mod_proxy.c>
800#ProxyRequests On
801#
802#<Proxy *>
803#    Order deny,allow
804#    Deny from all
805#    Allow from .example.com
806#</Proxy>
807
808#
809# Enable/disable the handling of HTTP/1.1 "Via:" headers.
810# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
811# Set to one of: Off | On | Full | Block
812#
813#ProxyVia On
814
815#
816# To enable a cache of proxied content, uncomment the following lines.
817# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
818#
819#<IfModule mod_disk_cache.c>
820#   CacheEnable disk /
821#   CacheRoot "/var/cache/mod_proxy"
822#</IfModule>
823#
824
825#</IfModule>
826# End of proxy directives.
827
828### Section 3: Virtual Hosts
829#
830# VirtualHost: If you want to maintain multiple domains/hostnames on your
831# machine you can setup VirtualHost containers for them. Most configurations
832# use only name-based virtual hosts so the server doesn't need to worry about
833# IP addresses. This is indicated by the asterisks in the directives below.
834#
835# Please see the documentation at 
836# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
837# for further details before you try to setup virtual hosts.
838#
839# You may use the command line option '-S' to verify your virtual host
840# configuration.
841
842#
843# Use name-based virtual hosting.
844#
845#NameVirtualHost *:80
846#
847# NOTE: NameVirtualHost cannot be used without a port specifier 
848# (e.g. :80) if mod_ssl is being used, due to the nature of the
849# SSL protocol.
850#
851
852#
853# VirtualHost example:
854# Almost any Apache directive may go into a VirtualHost container.
855# The first VirtualHost section is used for requests without a known
856# server name.
857#
858#<VirtualHost *:80>
859#    ServerAdmin webmaster@dummy-host.example.com
860#    DocumentRoot /www/docs/dummy-host.example.com
861#    ServerName dummy-host.example.com
862#    ErrorLog logs/dummy-host.example.com-error_log
863#    CustomLog logs/dummy-host.example.com-access_log common
864#</VirtualHost>
865
866<IfModule mod_php5.c>
867    # If php is turned on, we repsect .php and .phps files.
868    AddType application/x-httpd-php .php
869    AddType application/x-httpd-php .bat
870    AddType application/x-httpd-php-source .phps
871
872    # Since most users will want index.php to work we
873    # also automatically enable index.php
874    <IfModule mod_dir.c>
875        DirectoryIndex index.html index.php
876    </IfModule>
877</IfModule>
878
879<IfModule mod_rewrite.c>
880    RewriteEngine On
881    RewriteCond %{REQUEST_METHOD} ^TRACE
882    RewriteRule .* - [F]
883</IfModule>
884
885<VirtualHost *:8443>
886    ServerName 127.0.0.1
887    SSLEngine On
888</VirtualHost>
889