• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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://httpd.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# /private/etc/apache2/srm.conf and then /private/etc/apache2/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# ServerRoot: The top of the directory tree under which the server's
50# configuration, error, and log files are kept.
51#
52# NOTE!  If you intend to place this on an NFS (or otherwise network)
53# mounted filesystem then please read the LockFile documentation
54# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
55# you will save yourself a lot of trouble.
56#
57ServerRoot "/usr"
58
59#
60# The LockFile directive sets the path to the lockfile used when Apache
61# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
62# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
63# its default value. The main reason for changing it is if the logs
64# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
65# DISK. The PID of the main server process is automatically appended to
66# the filename.
67#
68LockFile "/tmp/WebKit/httpd.lock"
69
70#
71# PidFile: The file in which the server should record its process
72# identification number when it starts.
73#
74PidFile "/tmp/WebKit/httpd.pid"
75
76#
77# ScoreBoardFile: File used to store internal server process information.
78# Not all architectures require this.  But if yours does (you'll know because
79# this file will be  created when you run Apache) then you *must* ensure that
80# no two invocations of Apache share the same scoreboard file.
81#
82ScoreBoardFile "/tmp/WebKit/httpd.scoreboard"
83
84#
85# Timeout: The number of seconds before receives and sends time out.
86#
87Timeout 300
88
89#
90# KeepAlive: Whether or not to allow persistent connections (more than
91# one request per connection). Set to "Off" to deactivate.
92#
93KeepAlive On
94
95#
96# MaxKeepAliveRequests: The maximum number of requests to allow
97# during a persistent connection. Set to 0 to allow an unlimited amount.
98# We recommend you leave this number high, for maximum performance.
99#
100MaxKeepAliveRequests 100
101
102#
103# KeepAliveTimeout: Number of seconds to wait for the next request from the
104# same client on the same connection.
105#
106KeepAliveTimeout 15
107
108#
109# Server-pool size regulation.  Rather than making you guess how many
110# server processes you need, Apache dynamically adapts to the load it
111# sees --- that is, it tries to maintain enough server processes to
112# handle the current load, plus a few spare servers to handle transient
113# load spikes (e.g., multiple simultaneous requests from a single
114# Netscape browser).
115#
116# It does this by periodically checking how many servers are waiting
117# for a request.  If there are fewer than MinSpareServers, it creates
118# a new spare.  If there are more than MaxSpareServers, some of the
119# spares die off.  The default values are probably OK for most sites.
120#
121MinSpareServers 1
122MaxSpareServers 5
123
124#
125# Number of servers to start initially --- should be a reasonable ballpark
126# figure.
127#
128StartServers 1
129
130#
131# Limit on total number of servers running, i.e., limit on the number
132# of clients who can simultaneously connect --- if this limit is ever
133# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
134# It is intended mainly as a brake to keep a runaway server from taking
135# the system with it as it spirals down...
136#
137MaxClients 150
138
139#
140# MaxRequestsPerChild: the number of requests each child process is
141# allowed to process before the child dies.  The child will exit so
142# as to avoid problems after prolonged use when Apache (and maybe the
143# libraries it uses) leak memory or other resources.  On most systems, this
144# isn't really needed, but a few (such as Solaris) do have notable leaks
145# in the libraries. For these platforms, set to something like 10000
146# or so; a setting of 0 means unlimited.
147#
148# NOTE: This value does not include keepalive requests after the initial
149#       request per connection. For example, if a child process handles
150#       an initial request and 10 subsequent "keptalive" requests, it
151#       would only count as 1 request towards this limit.
152#
153MaxRequestsPerChild 100000
154
155#
156# Listen: Allows you to bind Apache to specific IP addresses and/or
157# ports, instead of the default. See also the <VirtualHost>
158# directive.
159#
160# Configured from the httpd command line for WebKit layout tests.
161# Port 8443 is hard-coded as it is needed for the HTTPS configuration later on.
162#
163#Listen 3000
164Listen 127.0.0.1:8080
165Listen 127.0.0.1:8443
166# We listen to both IPv4 and IPv6 loop-back addresses, but ignore
167# requests to 8000 from random users on network.
168# See https://bugs.webkit.org/show_bug.cgi?id=37104
169Listen [::1]:8000
170Listen [::1]:8080
171Listen [::1]:8443
172
173#
174# Dynamic Shared Object (DSO) Support
175#
176# To be able to use the functionality of a module which was built as a DSO you
177# have to place corresponding `LoadModule' lines at this location so the
178# directives contained in it are actually available _before_ they are used.
179# Please read the file http://httpd.apache.org/docs/dso.html for more
180# details about the DSO mechanism and run `httpd -l' for the list of already
181# built-in (statically linked and thus always available) modules in your httpd
182# binary.
183#
184# Note: The order in which modules are loaded is important.  Don't change
185# the order below without expert advice.
186#
187# Example:
188# LoadModule foo_module libexec/mod_foo.so
189#LoadModule authn_file_module libexec/apache2/mod_authn_file.so
190#LoadModule authn_dbm_module libexec/apache2/mod_authn_dbm.so
191#LoadModule authn_anon_module libexec/apache2/mod_authn_anon.so
192#LoadModule authn_dbd_module libexec/apache2/mod_authn_dbd.so
193#LoadModule authn_default_module libexec/apache2/mod_authn_default.so
194LoadModule authz_host_module libexec/apache2/mod_authz_host.so
195#LoadModule authz_groupfile_module libexec/apache2/mod_authz_groupfile.so
196#LoadModule authz_user_module libexec/apache2/mod_authz_user.so
197#LoadModule authz_dbm_module libexec/apache2/mod_authz_dbm.so
198#LoadModule authz_owner_module libexec/apache2/mod_authz_owner.so
199#LoadModule authz_default_module libexec/apache2/mod_authz_default.so
200#LoadModule auth_basic_module libexec/apache2/mod_auth_basic.so
201#LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so
202#LoadModule cache_module libexec/apache2/mod_cache.so
203#LoadModule disk_cache_module libexec/apache2/mod_disk_cache.so
204#LoadModule mem_cache_module libexec/apache2/mod_mem_cache.so
205#LoadModule dbd_module libexec/apache2/mod_dbd.so
206#LoadModule dumpio_module libexec/apache2/mod_dumpio.so
207#LoadModule ext_filter_module libexec/apache2/mod_ext_filter.so
208LoadModule include_module libexec/apache2/mod_include.so
209#LoadModule filter_module libexec/apache2/mod_filter.so
210#LoadModule substitute_module libexec/apache2/mod_substitute.so
211#LoadModule deflate_module libexec/apache2/mod_deflate.so
212LoadModule log_config_module libexec/apache2/mod_log_config.so
213#LoadModule log_forensic_module libexec/apache2/mod_log_forensic.so
214#LoadModule logio_module libexec/apache2/mod_logio.so
215#LoadModule env_module libexec/apache2/mod_env.so
216#LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
217#LoadModule cern_meta_module libexec/apache2/mod_cern_meta.so
218#LoadModule expires_module libexec/apache2/mod_expires.so
219LoadModule headers_module libexec/apache2/mod_headers.so
220#LoadModule ident_module libexec/apache2/mod_ident.so
221#LoadModule usertrack_module libexec/apache2/mod_usertrack.so
222#LoadModule unique_id_module libexec/apache2/mod_unique_id.so
223#LoadModule setenvif_module libexec/apache2/mod_setenvif.so
224#LoadModule version_module libexec/apache2/mod_version.so
225#LoadModule proxy_module libexec/apache2/mod_proxy.so
226#LoadModule proxy_connect_module libexec/apache2/mod_proxy_connect.so
227#LoadModule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so
228#LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
229#LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so
230#LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so
231LoadModule ssl_module libexec/apache2/mod_ssl.so
232LoadModule mime_module libexec/apache2/mod_mime.so
233#LoadModule dav_module libexec/apache2/mod_dav.so
234#LoadModule status_module libexec/apache2/mod_status.so
235#LoadModule autoindex_module libexec/apache2/mod_autoindex.so
236LoadModule asis_module libexec/apache2/mod_asis.so
237#LoadModule info_module libexec/apache2/mod_info.so
238LoadModule cgi_module libexec/apache2/mod_cgi.so
239#LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
240#LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
241LoadModule negotiation_module libexec/apache2/mod_negotiation.so
242#LoadModule dir_module libexec/apache2/mod_dir.so
243LoadModule imagemap_module libexec/apache2/mod_imagemap.so
244LoadModule actions_module libexec/apache2/mod_actions.so
245#LoadModule speling_module libexec/apache2/mod_speling.so
246#LoadModule userdir_module libexec/apache2/mod_userdir.so
247LoadModule alias_module libexec/apache2/mod_alias.so
248LoadModule rewrite_module libexec/apache2/mod_rewrite.so
249#LoadModule bonjour_module     libexec/apache2/mod_bonjour.so
250LoadModule php5_module        libexec/apache2/libphp5.so
251#LoadModule fastcgi_module     libexec/apache2/mod_fastcgi.so
252
253### Section 2: 'Main' server configuration
254#
255# The directives in this section set up the values used by the 'main'
256# server, which responds to any requests that aren't handled by a
257# <VirtualHost> definition.  These values also provide defaults for
258# any <VirtualHost> containers you may define later in the file.
259#
260# All of these directives may appear inside <VirtualHost> containers,
261# in which case these default settings will be overridden for the
262# virtual host being defined.
263#
264
265#
266# ServerName allows you to set a host name which is sent back to clients for
267# your server if it's different than the one the program would get (i.e., use
268# "www" instead of the host's real name).
269#
270# Note: You cannot just invent host names and hope they work. The name you
271# define here must be a valid DNS name for your host. If you don't understand
272# this, ask your network administrator.
273# If your host doesn't have a registered DNS name, enter its IP address here.
274# You will have to access it by its address (e.g., http://123.45.67.89/)
275# anyway, and this will make redirections work in a sensible way.
276#
277# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
278# machine always knows itself by this address. If you use Apache strictly for
279# local testing and development, you may use 127.0.0.1 as the server name.
280#
281ServerName 127.0.0.1
282
283#
284# DocumentRoot: The directory out of which you will serve your
285# documents. By default, all requests are taken from this directory, but
286# symbolic links and aliases may be used to point to other locations.
287#
288# Configured from the httpd command line for WebKit layout tests.
289#DocumentRoot "/Library/WebServer/Documents"
290
291#
292# Each directory to which Apache has access, can be configured with respect
293# to which services and features are allowed and/or disabled in that
294# directory (and its subdirectories).
295#
296<Directory />
297#
298# This may also be "None", "All", or any combination of "Indexes",
299# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
300#
301# Note that "MultiViews" must be named *explicitly* --- "Options All"
302# doesn't give it to you.
303#
304    Options Indexes FollowSymLinks MultiViews ExecCGI Includes
305
306#
307# This controls which options the .htaccess files in directories can
308# override. Can also be "All", or any combination of "Options", "FileInfo",
309# "AuthConfig", and "Limit"
310#
311    AllowOverride All
312
313#
314# Controls who can get stuff from this server.
315#
316    Order allow,deny
317    Allow from all
318</Directory>
319
320#
321# AccessFileName: The name of the file to look for in each directory
322# for access control information.
323#
324AccessFileName .htaccess
325
326#
327# The following lines prevent .htaccess files from being viewed by
328# Web clients.  Since .htaccess files often contain authorization
329# information, access is disallowed for security reasons.  Comment
330# these lines out if you want Web visitors to see the contents of
331# .htaccess files.  If you change the AccessFileName directive above,
332# be sure to make the corresponding changes here.
333#
334# Also, folks tend to use names such as .htpasswd for password
335# files, so this will protect those as well.
336#
337<Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
338    Order allow,deny
339    Deny from all
340    Satisfy All
341</Files>
342
343#
344# Apple specific filesystem protection.
345#
346
347<Files "rsrc">
348    Order allow,deny
349    Deny from all
350    Satisfy All
351</Files>
352
353<Directory  ~ ".*\.\.namedfork">
354    Order allow,deny
355    Deny from all
356    Satisfy All
357</Directory>
358
359#
360# CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
361# document that was negotiated on the basis of content. This asks proxy
362# servers not to cache the document. Uncommenting the following line disables
363# this behavior, and proxies will be allowed to cache the documents.
364#
365#CacheNegotiatedDocs
366
367#
368# UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
369# Apache needs to construct a self-referencing URL (a URL that refers back
370# to the server the response is coming from) it will use ServerName and
371# Port to form a "canonical" name.  With this setting off, Apache will
372# use the hostname:port that the client supplied, when possible.  This
373# also affects SERVER_NAME and SERVER_PORT in CGI scripts.
374#
375UseCanonicalName On
376
377#
378# TypesConfig describes where the mime.types file (or equivalent) is
379# to be found.
380#
381# Configured from the httpd command line for WebKit layout tests.
382#
383#<IfModule mod_mime.c>
384#    TypesConfig /private/etc/apache2/mime.types
385#</IfModule>
386
387#
388# DefaultType is the default MIME type the server will use for a document
389# if it cannot otherwise determine one, such as from filename extensions.
390# If your server contains mostly text or HTML documents, "text/plain" is
391# a good value.  If most of your content is binary, such as applications
392# or images, you may want to use "application/octet-stream" instead to
393# keep browsers from trying to display binary files as though they are
394# text.
395#
396DefaultType text/plain
397
398#
399# HostnameLookups: Log the names of clients or just their IP addresses
400# e.g., www.apache.org (on) or 204.62.129.132 (off).
401# The default is off because it'd be overall better for the net if people
402# had to knowingly turn this feature on, since enabling it means that
403# each client request will result in AT LEAST one lookup request to the
404# nameserver.
405#
406HostnameLookups Off
407
408#
409# ErrorLog: The location of the error log file.
410# If you do not specify an ErrorLog directive within a <VirtualHost>
411# container, error messages relating to that virtual host will be
412# logged here.  If you *do* define an error logfile for a <VirtualHost>
413# container, that host's errors will be logged there and not here.
414#
415# Configured from the httpd command line for WebKit layout tests.
416#ErrorLog "/tmp/layout-test-results/error_log"
417
418#
419# LogLevel: Control the number of messages logged to the error_log.
420# Possible values include: debug, info, notice, warn, error, crit,
421# alert, emerg.
422#
423LogLevel warn
424
425#
426# The following directives define some format nicknames for use with
427# a CustomLog directive (see below).
428#
429LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
430LogFormat "%h %l %u %t \"%r\" %>s %b" common
431LogFormat "%{Referer}i -> %U" referer
432LogFormat "%{User-agent}i" agent
433
434#
435# The location and format of the access logfile (Common Logfile Format).
436# If you do not define any access logfiles within a <VirtualHost>
437# container, they will be logged here.  Contrariwise, if you *do*
438# define per-<VirtualHost> access logfiles, transactions will be
439# logged therein and *not* in this file.
440#
441# Configured from the httpd command line for WebKit layout tests.
442#CustomLog "/tmp/layout-test-results/access_log" common
443
444#
445# If you prefer a single logfile with access, agent, and referer information
446# (Combined Logfile Format) you can use the following directive.
447#
448#CustomLog "/tmp/layout-test-results/access_log" combined
449
450#
451# Optionally add a line containing the server version and virtual host
452# name to server-generated pages (error documents, FTP directory listings,
453# mod_status and mod_info output etc., but not CGI generated documents).
454# Set to "EMail" to also include a mailto: link to the ServerAdmin.
455# Set to one of:  On | Off | EMail
456#
457ServerSignature On
458
459#
460# Aliases: Add here as many aliases as you need (with no limit). The format is
461# Alias fakename realname
462#
463<IfModule mod_alias.c>
464</IfModule>
465# End of aliases.
466
467#
468# Redirect allows you to tell clients about documents which used to exist in
469# your server's namespace, but do not anymore. This allows you to tell the
470# clients where to look for the relocated document.
471# Format: Redirect old-URI new-URL
472#
473
474#
475# Document types.
476#
477<IfModule mod_mime.c>
478
479    #
480    # AddLanguage allows you to specify the language of a document. You can
481    # then use content negotiation to give a browser a file in a language
482    # it can understand.
483    #
484    # Note 1: The suffix does not have to be the same as the language
485    # keyword --- those with documents in Polish (whose net-standard
486    # language code is pl) may wish to use "AddLanguage pl .po" to
487    # avoid the ambiguity with the common suffix for perl scripts.
488    #
489    # Note 2: The example entries below illustrate that in quite
490    # some cases the two character 'Language' abbreviation is not
491    # identical to the two character 'Country' code for its country,
492    # E.g. 'Danmark/dk' versus 'Danish/da'.
493    #
494    # Note 3: In the case of 'ltz' we violate the RFC by using a three char
495    # specifier. But there is 'work in progress' to fix this and get
496    # the reference data for rfc1766 cleaned up.
497    #
498    # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
499    # French (fr) - German (de) - Greek-Modern (el)
500    # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
501    # Portugese (pt) - Luxembourgeois* (ltz)
502    # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
503    # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
504    # Russian (ru)
505    #
506    AddLanguage da .dk
507    AddLanguage nl .nl
508    AddLanguage en .en
509    AddLanguage et .ee
510    AddLanguage fr .fr
511    AddLanguage de .de
512    AddLanguage el .el
513    AddLanguage he .he
514    AddCharset ISO-8859-8 .iso8859-8
515    AddLanguage it .it
516    AddLanguage ja .ja
517    AddCharset ISO-2022-JP .jis
518    AddLanguage kr .kr
519    AddCharset ISO-2022-KR .iso-kr
520    AddLanguage nn .nn
521    AddLanguage no .no
522    AddLanguage pl .po
523    AddCharset ISO-8859-2 .iso-pl
524    AddLanguage pt .pt
525    AddLanguage pt-br .pt-br
526    AddLanguage ltz .lu
527    AddLanguage ca .ca
528    AddLanguage es .es
529    AddLanguage sv .sv
530    AddLanguage cs .cz .cs
531    AddLanguage ru .ru
532    AddLanguage zh-TW .zh-tw
533    AddCharset Big5         .Big5    .big5
534    AddCharset WINDOWS-1251 .cp-1251
535    AddCharset CP866        .cp866
536    AddCharset ISO-8859-5   .iso-ru
537    AddCharset KOI8-R       .koi8-r
538    AddCharset UCS-2        .ucs2
539    AddCharset UCS-4        .ucs4
540    AddCharset UTF-8        .utf8
541
542    # LanguagePriority allows you to give precedence to some languages
543    # in case of a tie during content negotiation.
544    #
545    # Just list the languages in decreasing order of preference. We have
546    # more or less alphabetized them here. You probably want to change this.
547    #
548    <IfModule mod_negotiation.c>
549        LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
550    </IfModule>
551
552    #
553    # AddType allows you to tweak mime.types without actually editing it, or to
554    # make certain files to be certain types.
555    #
556    AddType application/x-tar .tgz
557
558    #
559    # AddEncoding allows you to have certain browsers uncompress
560    # information on the fly. Note: Not all browsers support this.
561    # Despite the name similarity, the following Add* directives have nothing
562    # to do with the FancyIndexing customization directives above.
563    #
564    AddEncoding x-compress .Z
565    AddEncoding x-gzip .gz .tgz
566    #
567    # If the AddEncoding directives above are commented-out, then you
568    # probably should define those extensions to indicate media types:
569    #
570    #AddType application/x-compress .Z
571    #AddType application/x-gzip .gz .tgz
572
573    #
574    # AddHandler allows you to map certain file extensions to "handlers",
575    # actions unrelated to filetype. These can be either built into the server
576    # or added with the Action command (see below)
577    #
578    # If you want to use server side includes, or CGI outside
579    # ScriptAliased directories, uncomment the following lines.
580    #
581    # To use CGI scripts:
582    #
583    AddHandler cgi-script .cgi .pl
584
585    #
586    # To use server-parsed HTML files
587    #
588    AddType text/html .shtml
589    AddHandler server-parsed .shtml
590
591    #
592    # Uncomment the following line to enable Apache's send-asis HTTP file
593    # feature
594    #
595    AddHandler send-as-is asis
596
597    #
598    # If you wish to use server-parsed imagemap files, use
599    #
600    #AddHandler imap-file map
601
602    #
603    # To enable type maps, you might want to use
604    #
605    #AddHandler type-map var
606
607</IfModule>
608# End of document types.
609
610#
611# Action lets you define media types that will execute a script whenever
612# a matching file is called. This eliminates the need for repeated URL
613# pathnames for oft-used CGI file processors.
614# Format: Action media/type /cgi-script/location
615# Format: Action handler-name /cgi-script/location
616#
617
618#
619# MetaDir: specifies the name of the directory in which Apache can find
620# meta information files. These files contain additional HTTP headers
621# to include when sending the document
622#
623#MetaDir .web
624
625#
626# MetaSuffix: specifies the file name suffix for the file containing the
627# meta information.
628#
629#MetaSuffix .meta
630
631#
632# Customizable error response (Apache style)
633#  these come in three flavors
634#
635#    1) plain text
636#ErrorDocument 500 "The server made a boo boo.
637#  n.b.  the single leading (") marks it as text, it does not get output
638#
639#    2) local redirects
640#ErrorDocument 404 /missing.html
641#  to redirect to local URL /missing.html
642#ErrorDocument 404 /cgi-bin/missing_handler.pl
643#  N.B.: You can redirect to a script or a document using server-side-includes.
644#
645#    3) external redirects
646#ErrorDocument 402 http://some.other-server.com/subscription_info.html
647#  N.B.: Many of the environment variables associated with the original
648#  request will *not* be available to such a script.
649
650#
651# Proxy Server directives. Uncomment the following lines to
652# enable the proxy server:
653#
654#<IfModule mod_proxy.c>
655#    ProxyRequests On
656
657#    <Directory proxy:*>
658#        Order deny,allow
659#        Deny from all
660#        Allow from .your-domain.com
661#    </Directory>
662
663    #
664    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
665    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
666    # Set to one of: Off | On | Full | Block
667    #
668#    ProxyVia On
669
670    #
671    # To enable the cache as well, edit and uncomment the following lines:
672    # (no cacheing without CacheRoot)
673    #
674#    CacheRoot "/private/var/run/proxy"
675#    CacheSize 5
676#    CacheGcInterval 4
677#    CacheMaxExpire 24
678#    CacheLastModifiedFactor 0.1
679#    CacheDefaultExpire 1
680#    NoCache a-domain.com another-domain.edu joes.garage-sale.com
681
682#</IfModule>
683# End of proxy directives.
684
685
686<IfModule mod_php5.c>
687    # If php is turned on, we repsect .php and .phps files.
688    AddType application/x-httpd-php .php
689    AddType application/x-httpd-php .bat
690    AddType application/x-httpd-php-source .phps
691
692    # Since most users will want index.php to work we
693    # also automatically enable index.php
694    <IfModule mod_dir.c>
695        DirectoryIndex index.html index.php
696    </IfModule>
697</IfModule>
698
699<IfModule mod_rewrite.c>
700    RewriteEngine On
701    RewriteCond %{REQUEST_METHOD} ^TRACE
702    RewriteRule .* - [F]
703</IfModule>
704
705<VirtualHost *:8443>
706    ServerName 127.0.0.1
707    SSLEngine On
708</VirtualHost>
709