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