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# Port 8443 is hard-coded as it is needed for the HTTPS configuration later on.
180cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
181cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#Listen 3000
182cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockListen 127.0.0.1:8080
183cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockListen 127.0.0.1:8443
184dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block# Apache 1.3 only supports IPv4, so we do not listen on ::1 (IPv6 loopback).
185dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block# This may cause flaky tests on systems which support IPv6 if localhost resolves
186dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block# to ::1 in addition to 127.0.0.1.
187dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block# See https://bugs.webkit.org/show_bug.cgi?id=37104
188cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
189cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
190cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Dynamic Shared Object (DSO) Support
191cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
192cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# To be able to use the functionality of a module which was built as a DSO you
193cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# have to place corresponding `LoadModule' lines at this location so the
194cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# directives contained in it are actually available _before_ they are used.
195cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Please read the file http://httpd.apache.org/docs/dso.html for more
196cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# details about the DSO mechanism and run `httpd -l' for the list of already
197cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# built-in (statically linked and thus always available) modules in your httpd
198cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# binary.
199cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
200cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Note: The order in which modules are loaded is important.  Don't change
201cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# the order below without expert advice.
202cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
203cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Example:
204cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# LoadModule foo_module libexec/mod_foo.so
205cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule vhost_alias_module libexec/httpd/mod_vhost_alias.so
206cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule env_module         libexec/httpd/mod_env.so
207cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule config_log_module  libexec/httpd/mod_log_config.so
208cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule mime_magic_module  libexec/httpd/mod_mime_magic.so
209cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule mime_module        libexec/httpd/mod_mime.so
210cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule negotiation_module libexec/httpd/mod_negotiation.so
211cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule status_module      libexec/httpd/mod_status.so
212cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule info_module        libexec/httpd/mod_info.so
213cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule includes_module    libexec/httpd/mod_include.so
214cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule autoindex_module   libexec/httpd/mod_autoindex.so
215cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule dir_module         libexec/httpd/mod_dir.so
216cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule cgi_module         libexec/httpd/mod_cgi.so
217cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule asis_module        libexec/httpd/mod_asis.so
218cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule imap_module        libexec/httpd/mod_imap.so
219cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule action_module      libexec/httpd/mod_actions.so
220cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule speling_module     libexec/httpd/mod_speling.so
221cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule userdir_module     libexec/httpd/mod_userdir.so
222cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule alias_module       libexec/httpd/mod_alias.so
223cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule rewrite_module     libexec/httpd/mod_rewrite.so
224cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule access_module      libexec/httpd/mod_access.so
225cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule auth_module        libexec/httpd/mod_auth.so
226cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule anon_auth_module   libexec/httpd/mod_auth_anon.so
227cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule dbm_auth_module    libexec/httpd/mod_auth_dbm.so
228cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule digest_module      libexec/httpd/mod_digest.so
229cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule proxy_module       libexec/httpd/libproxy.so
230cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule cern_meta_module   libexec/httpd/mod_cern_meta.so
231cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule expires_module     libexec/httpd/mod_expires.so
232cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule headers_module     libexec/httpd/mod_headers.so
233cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule usertrack_module   libexec/httpd/mod_usertrack.so
234cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule log_forensic_module libexec/httpd/mod_log_forensic.so
235cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule unique_id_module   libexec/httpd/mod_unique_id.so
236cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule setenvif_module    libexec/httpd/mod_setenvif.so
237cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule dav_module         libexec/httpd/libdav.so
238cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule ssl_module         libexec/httpd/libssl.so
239cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule perl_module        libexec/httpd/libperl.so
240cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule php4_module        libexec/httpd/libphp4.so
241cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLoadModule hfs_apple_module   libexec/httpd/mod_hfs_apple.so
242cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#LoadModule bonjour_module     libexec/httpd/mod_bonjour.so
243cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
244cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  Reconstruction of the complete module list from all available modules
245cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  (static and shared ones) to achieve correct module execution order.
246cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
247cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockClearModuleList
248cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_vhost_alias.c
249cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_env.c
250cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_log_config.c
251cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_mime_magic.c
252cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_mime.c
253cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_negotiation.c
254cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_status.c
255cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_info.c
256cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_include.c
257cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_autoindex.c
258cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_dir.c
259cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_cgi.c
260cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_asis.c
261cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_imap.c
262cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_actions.c
263cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_speling.c
264cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_userdir.c
265cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_alias.c
266cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_rewrite.c
267cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_access.c
268cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_auth.c
269cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_auth_anon.c
270cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_auth_dbm.c
271cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_digest.c
272cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_proxy.c
273cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_cern_meta.c
274cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_expires.c
275cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_headers.c
276cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_usertrack.c
277cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_log_forensic.c
278cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_unique_id.c
279cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_so.c
280cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_setenvif.c
281cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_dav.c
282cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_ssl.c
283cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_perl.c
284cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_php4.c
285cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAddModule mod_hfs_apple.c
286cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#AddModule mod_bonjour.c
287cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
288cfb0617749a64f2e177386b030d46007b8c4b179Steve Block### Section 2: 'Main' server configuration
289cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
290cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# The directives in this section set up the values used by the 'main'
291cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# server, which responds to any requests that aren't handled by a
292cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# <VirtualHost> definition.  These values also provide defaults for
293cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# any <VirtualHost> containers you may define later in the file.
294cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
295cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# All of these directives may appear inside <VirtualHost> containers,
296cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# in which case these default settings will be overridden for the
297cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# virtual host being defined.
298cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
299cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
300cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
301cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# ServerName allows you to set a host name which is sent back to clients for
302cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# your server if it's different than the one the program would get (i.e., use
303cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# "www" instead of the host's real name).
304cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
305cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Note: You cannot just invent host names and hope they work. The name you 
306cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# define here must be a valid DNS name for your host. If you don't understand
307cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# this, ask your network administrator.
308cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# If your host doesn't have a registered DNS name, enter its IP address here.
309cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# You will have to access it by its address (e.g., http://123.45.67.89/)
310cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# anyway, and this will make redirections work in a sensible way.
311cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
312cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
313cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# machine always knows itself by this address. If you use Apache strictly for 
314cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# local testing and development, you may use 127.0.0.1 as the server name.
315cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
316cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockServerName 127.0.0.1
317cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
318cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
319cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# DocumentRoot: The directory out of which you will serve your
320cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# documents. By default, all requests are taken from this directory, but
321cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# symbolic links and aliases may be used to point to other locations.
322cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
323cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Configured from the httpd command line for WebKit layout tests.
324cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#DocumentRoot "/Library/WebServer/Documents"
325cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
326cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
327cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Each directory to which Apache has access, can be configured with respect
328cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# to which services and features are allowed and/or disabled in that
329cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# directory (and its subdirectories). 
330cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
331cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<Directory />
332cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
333cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# This may also be "None", "All", or any combination of "Indexes",
334cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
335cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
336cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Note that "MultiViews" must be named *explicitly* --- "Options All"
337cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# doesn't give it to you.
338cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
339cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Options Indexes FollowSymLinks MultiViews ExecCGI Includes
340cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
341cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
342cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# This controls which options the .htaccess files in directories can
343cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# override. Can also be "All", or any combination of "Options", "FileInfo", 
344cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# "AuthConfig", and "Limit"
345cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
346cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AllowOverride All
347cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
348cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
349cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Controls who can get stuff from this server.
350cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
351cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Order allow,deny
352cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Allow from all
353cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</Directory>
354cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
355cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
356cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# AccessFileName: The name of the file to look for in each directory
357cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# for access control information.
358cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
359cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockAccessFileName .htaccess
360cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
361cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
362cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# The following lines prevent .htaccess files from being viewed by
363cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Web clients.  Since .htaccess files often contain authorization
364cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# information, access is disallowed for security reasons.  Comment
365cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# these lines out if you want Web visitors to see the contents of
366cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# .htaccess files.  If you change the AccessFileName directive above,
367cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# be sure to make the corresponding changes here.
368cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
369cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Also, folks tend to use names such as .htpasswd for password
370cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# files, so this will protect those as well.
371cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
372cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
373cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Order allow,deny
374cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Deny from all
375cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Satisfy All
376cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</Files>
377cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
378cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
379cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Apple specific filesystem protection.
380cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# 
381cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
382cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<Files "rsrc">
383cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Order allow,deny
384cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Deny from all
385cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Satisfy All
386cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</Files>
387cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
388cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<Directory  ~ ".*\.\.namedfork">
389cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Order allow,deny
390cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Deny from all
391cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    Satisfy All
392cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</Directory>
393cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
394cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
395cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
396cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# document that was negotiated on the basis of content. This asks proxy
397cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# servers not to cache the document. Uncommenting the following line disables
398cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# this behavior, and proxies will be allowed to cache the documents.
399cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
400cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#CacheNegotiatedDocs
401cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
402cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
403cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
404cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Apache needs to construct a self-referencing URL (a URL that refers back
405cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# to the server the response is coming from) it will use ServerName and
406cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Port to form a "canonical" name.  With this setting off, Apache will
407cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# use the hostname:port that the client supplied, when possible.  This
408cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# also affects SERVER_NAME and SERVER_PORT in CGI scripts.
409cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
410cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockUseCanonicalName On
411cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
412cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
413cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# TypesConfig describes where the mime.types file (or equivalent) is
414cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# to be found.
415cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
416cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Configured from the httpd command line for WebKit layout tests.
417cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
418cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#<IfModule mod_mime.c>
419cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    TypesConfig /private/etc/httpd/mime.types
420cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#</IfModule>
421cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
422cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
423cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# DefaultType is the default MIME type the server will use for a document
424cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# if it cannot otherwise determine one, such as from filename extensions.
425cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# If your server contains mostly text or HTML documents, "text/plain" is
426cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# a good value.  If most of your content is binary, such as applications
427cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# or images, you may want to use "application/octet-stream" instead to
428cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# keep browsers from trying to display binary files as though they are
429cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# text.
430cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
431cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockDefaultType text/plain
432cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
433cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
434cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# HostnameLookups: Log the names of clients or just their IP addresses
435cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# e.g., www.apache.org (on) or 204.62.129.132 (off).
436cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# The default is off because it'd be overall better for the net if people
437cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# had to knowingly turn this feature on, since enabling it means that
438cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# each client request will result in AT LEAST one lookup request to the
439cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# nameserver.
440cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
441cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockHostnameLookups Off
442cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
443cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
444cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# ErrorLog: The location of the error log file.
445cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# If you do not specify an ErrorLog directive within a <VirtualHost>
446cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# container, error messages relating to that virtual host will be
447cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# logged here.  If you *do* define an error logfile for a <VirtualHost>
448cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# container, that host's errors will be logged there and not here.
449cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
450cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Configured from the httpd command line for WebKit layout tests.
451cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#ErrorLog "/tmp/layout-test-results/error_log"
452cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
453cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
454cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# LogLevel: Control the number of messages logged to the error_log.
455cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Possible values include: debug, info, notice, warn, error, crit,
456cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# alert, emerg.
457cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
458cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLogLevel warn
459cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
460cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
461cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# The following directives define some format nicknames for use with
462cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# a CustomLog directive (see below).
463cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
464cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
465cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLogFormat "%h %l %u %t \"%r\" %>s %b" common
466cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLogFormat "%{Referer}i -> %U" referer
467cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockLogFormat "%{User-agent}i" agent
468cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
469cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
470cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# The location and format of the access logfile (Common Logfile Format).
471cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# If you do not define any access logfiles within a <VirtualHost>
472cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# container, they will be logged here.  Contrariwise, if you *do*
473cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# define per-<VirtualHost> access logfiles, transactions will be
474cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# logged therein and *not* in this file.
475cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
476cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Configured from the httpd command line for WebKit layout tests.
477cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#CustomLog "/tmp/layout-test-results/access_log" common
478cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
479cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
480cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# If you prefer a single logfile with access, agent, and referer information
481cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# (Combined Logfile Format) you can use the following directive.
482cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
483cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#CustomLog "/tmp/layout-test-results/access_log" combined
484cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
485cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
486cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Optionally add a line containing the server version and virtual host
487cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# name to server-generated pages (error documents, FTP directory listings,
488cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# mod_status and mod_info output etc., but not CGI generated documents).
489cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Set to "EMail" to also include a mailto: link to the ServerAdmin.
490cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Set to one of:  On | Off | EMail
491cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
492cfb0617749a64f2e177386b030d46007b8c4b179Steve BlockServerSignature On
493cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
494cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
495cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Aliases: Add here as many aliases as you need (with no limit). The format is 
496cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Alias fakename realname
497cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
498cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<IfModule mod_alias.c>
499cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</IfModule>
500cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# End of aliases.
501cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
502cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
503cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Redirect allows you to tell clients about documents which used to exist in
504cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# your server's namespace, but do not anymore. This allows you to tell the
505cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# clients where to look for the relocated document.
506cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Format: Redirect old-URI new-URL
507cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
508cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
509cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
510cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Document types.
511cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
512cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<IfModule mod_mime.c>
513cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
514cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
515cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # AddLanguage allows you to specify the language of a document. You can
516cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # then use content negotiation to give a browser a file in a language
517cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # it can understand.  
518cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
519cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Note 1: The suffix does not have to be the same as the language 
520cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # keyword --- those with documents in Polish (whose net-standard 
521cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # language code is pl) may wish to use "AddLanguage pl .po" to 
522cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # avoid the ambiguity with the common suffix for perl scripts.
523cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
524cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Note 2: The example entries below illustrate that in quite
525cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # some cases the two character 'Language' abbreviation is not
526cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # identical to the two character 'Country' code for its country,
527cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # E.g. 'Danmark/dk' versus 'Danish/da'.
528cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
529cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
530cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # specifier. But there is 'work in progress' to fix this and get 
531cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # the reference data for rfc1766 cleaned up.
532cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
533cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
534cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # French (fr) - German (de) - Greek-Modern (el)
535cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
536cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Portugese (pt) - Luxembourgeois* (ltz)
537cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
538cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
539cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Russian (ru)
540cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
541cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage da .dk
542cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage nl .nl
543cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage en .en
544cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage et .ee
545cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage fr .fr
546cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage de .de
547cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage el .el
548cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage he .he
549cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset ISO-8859-8 .iso8859-8
550cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage it .it
551cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage ja .ja
552cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset ISO-2022-JP .jis
553cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage kr .kr
554cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset ISO-2022-KR .iso-kr
555cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage nn .nn
556cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage no .no
557cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage pl .po
558cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset ISO-8859-2 .iso-pl
559cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage pt .pt
560cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage pt-br .pt-br
561cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage ltz .lu
562cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage ca .ca
563cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage es .es
564cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage sv .sv
565cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage cs .cz .cs
566cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage ru .ru
567cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddLanguage zh-TW .zh-tw
568cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset Big5         .Big5    .big5
569cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset WINDOWS-1251 .cp-1251
570cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset CP866        .cp866
571cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset ISO-8859-5   .iso-ru
572cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset KOI8-R       .koi8-r
573cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset UCS-2        .ucs2
574cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset UCS-4        .ucs4
575cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddCharset UTF-8        .utf8
576cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
577cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # LanguagePriority allows you to give precedence to some languages
578cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # in case of a tie during content negotiation.
579cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
580cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Just list the languages in decreasing order of preference. We have
581cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # more or less alphabetized them here. You probably want to change this.
582cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
583cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    <IfModule mod_negotiation.c>
584cfb0617749a64f2e177386b030d46007b8c4b179Steve Block        LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
585cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    </IfModule>
586cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
587cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
588cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # AddType allows you to tweak mime.types without actually editing it, or to
589cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # make certain files to be certain types.
590cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
591cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddType application/x-tar .tgz
592cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
593cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
594cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # AddEncoding allows you to have certain browsers uncompress
595cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # information on the fly. Note: Not all browsers support this.
596cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Despite the name similarity, the following Add* directives have nothing
597cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # to do with the FancyIndexing customization directives above.
598cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
599cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddEncoding x-compress .Z
600cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddEncoding x-gzip .gz .tgz
601cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
602cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # If the AddEncoding directives above are commented-out, then you
603cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # probably should define those extensions to indicate media types:
604cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
605cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #AddType application/x-compress .Z
606cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #AddType application/x-gzip .gz .tgz
607cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
608cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
609cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # AddHandler allows you to map certain file extensions to "handlers",
610cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # actions unrelated to filetype. These can be either built into the server
611cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # or added with the Action command (see below)
612cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
613cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # If you want to use server side includes, or CGI outside
614cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # ScriptAliased directories, uncomment the following lines.
615cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
616cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # To use CGI scripts:
617cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
618cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddHandler cgi-script .cgi .pl
619cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
620cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
621cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # To use server-parsed HTML files
622cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
623cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddType text/html .shtml
624cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddHandler server-parsed .shtml
625cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
626cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
627cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Uncomment the following line to enable Apache's send-asis HTTP file
628cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # feature
629cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
630cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddHandler send-as-is asis
631cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
632cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
633cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # If you wish to use server-parsed imagemap files, use
634cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
635cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #AddHandler imap-file map
636cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
637cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
638cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # To enable type maps, you might want to use
639cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
640cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #AddHandler type-map var
641cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
642cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</IfModule>
643cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# End of document types.
644cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
645cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
646cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Action lets you define media types that will execute a script whenever
647cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# a matching file is called. This eliminates the need for repeated URL
648cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# pathnames for oft-used CGI file processors.
649cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Format: Action media/type /cgi-script/location
650cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Format: Action handler-name /cgi-script/location
651cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
652cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
653cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
654cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# MetaDir: specifies the name of the directory in which Apache can find
655cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# meta information files. These files contain additional HTTP headers
656cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# to include when sending the document
657cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
658cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#MetaDir .web
659cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
660cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
661cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# MetaSuffix: specifies the file name suffix for the file containing the
662cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# meta information.
663cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
664cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#MetaSuffix .meta
665cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
666cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
667cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Customizable error response (Apache style)
668cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  these come in three flavors
669cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
670cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    1) plain text
671cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#ErrorDocument 500 "The server made a boo boo.
672cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  n.b.  the single leading (") marks it as text, it does not get output
673cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
674cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    2) local redirects
675cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#ErrorDocument 404 /missing.html
676cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  to redirect to local URL /missing.html
677cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#ErrorDocument 404 /cgi-bin/missing_handler.pl
678cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  N.B.: You can redirect to a script or a document using server-side-includes.
679cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
680cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    3) external redirects
681cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#ErrorDocument 402 http://some.other-server.com/subscription_info.html
682cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  N.B.: Many of the environment variables associated with the original
683cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#  request will *not* be available to such a script.
684cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
685cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
686cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# Proxy Server directives. Uncomment the following lines to
687cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# enable the proxy server:
688cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#
689cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#<IfModule mod_proxy.c>
690cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    ProxyRequests On
691cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
692cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    <Directory proxy:*>
693cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#        Order deny,allow
694cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#        Deny from all
695cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#        Allow from .your-domain.com
696cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    </Directory>
697cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
698cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
699cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
700cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
701cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Set to one of: Off | On | Full | Block
702cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
703cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    ProxyVia On
704cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
705cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
706cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # To enable the cache as well, edit and uncomment the following lines:
707cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # (no cacheing without CacheRoot)
708cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    #
709cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    CacheRoot "/private/var/run/proxy"
710cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    CacheSize 5
711cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    CacheGcInterval 4
712cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    CacheMaxExpire 24
713cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    CacheLastModifiedFactor 0.1
714cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    CacheDefaultExpire 1
715cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#    NoCache a-domain.com another-domain.edu joes.garage-sale.com
716cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
717cfb0617749a64f2e177386b030d46007b8c4b179Steve Block#</IfModule>
718cfb0617749a64f2e177386b030d46007b8c4b179Steve Block# End of proxy directives.
719cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
720cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
721cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<IfModule mod_php4.c>
722cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # If php is turned on, we repsect .php and .phps files.
723cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddType application/x-httpd-php .php
724cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddType application/x-httpd-php .bat
725cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    AddType application/x-httpd-php-source .phps
726cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
727cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # Since most users will want index.php to work we
728cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    # also automatically enable index.php
729cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    <IfModule mod_dir.c>
730cfb0617749a64f2e177386b030d46007b8c4b179Steve Block        DirectoryIndex index.html index.php
731cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    </IfModule>
732cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</IfModule>
733cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
734cfb0617749a64f2e177386b030d46007b8c4b179Steve Block<IfModule mod_rewrite.c>
735cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    RewriteEngine On
736cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    RewriteCond %{REQUEST_METHOD} ^TRACE
737cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    RewriteRule .* - [F]
738cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</IfModule>
739cfb0617749a64f2e177386b030d46007b8c4b179Steve Block
74021939df44de1705786c545cd1bf519d47250322dBen Murdoch<VirtualHost *:8443>
741cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    ServerName 127.0.0.1
742cfb0617749a64f2e177386b030d46007b8c4b179Steve Block    SSLEngine On
743cfb0617749a64f2e177386b030d46007b8c4b179Steve Block</VirtualHost>
744