Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Based upon the NCSA server configuration files originally by Rob McCool.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# This is the main Apache server configuration file.  It contains the
Ryan Haggerty e50d1d
# configuration directives that give the server its instructions.
Ryan Haggerty e50d1d
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
Ryan Haggerty e50d1d
# the directives.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Do NOT simply read the instructions in here without understanding
Ryan Haggerty e50d1d
# what they do.  They're here only as hints or reminders.  If you are unsure
Ryan Haggerty e50d1d
# consult the online docs. You have been warned.  
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The configuration directives are grouped into three basic sections:
Ryan Haggerty e50d1d
#  1. Directives that control the operation of the Apache server process as a
Ryan Haggerty e50d1d
#     whole (the 'global environment').
Ryan Haggerty e50d1d
#  2. Directives that define the parameters of the 'main' or 'default' server,
Ryan Haggerty e50d1d
#     which responds to requests that aren't handled by a virtual host.
Ryan Haggerty e50d1d
#     These directives also provide default values for the settings
Ryan Haggerty e50d1d
#     of all virtual hosts.
Ryan Haggerty e50d1d
#  3. Settings for virtual hosts, which allow Web requests to be sent to
Ryan Haggerty e50d1d
#     different IP addresses or hostnames and have them handled by the
Ryan Haggerty e50d1d
#     same Apache server process.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Configuration and logfile names: If the filenames you specify for many
Ryan Haggerty e50d1d
# of the server's control files begin with "/" (or "drive:/" for Win32), the
Ryan Haggerty e50d1d
# server will use that explicit path.  If the filenames do *not* begin
Ryan Haggerty e50d1d
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
Ryan Haggerty e50d1d
# with ServerRoot set to "/etc/httpd" will be interpreted by the
Ryan Haggerty e50d1d
# server as "/etc/httpd/logs/foo.log".
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
### Section 1: Global Environment
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The directives in this section affect the overall operation of Apache,
Ryan Haggerty e50d1d
# such as the number of concurrent requests it can handle or where it
Ryan Haggerty e50d1d
# can find its configuration files.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Don't give away too much information about all the subcomponents
Ryan Haggerty e50d1d
# we are running.  Comment out this line if you don't mind remote sites
Ryan Haggerty e50d1d
# finding out what major optional modules you are running
Ryan Haggerty e50d1d
ServerTokens OS
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ServerRoot: The top of the directory tree under which the server's
Ryan Haggerty e50d1d
# configuration, error, and log files are kept.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# NOTE!  If you intend to place this on an NFS (or otherwise network)
Ryan Haggerty e50d1d
# mounted filesystem then please read the LockFile documentation
Ryan Haggerty e50d1d
# (available at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
Ryan Haggerty e50d1d
# you will save yourself a lot of trouble.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Do NOT add a slash at the end of the directory path.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
ServerRoot "/etc/httpd"
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# PidFile: The file in which the server should record its process
Ryan Haggerty e50d1d
# identification number when it starts.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
PidFile run/httpd.pid
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Timeout: The number of seconds before receives and sends time out.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Timeout 120
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# KeepAlive: Whether or not to allow persistent connections (more than
Ryan Haggerty e50d1d
# one request per connection). Set to "Off" to deactivate.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
KeepAlive Off
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# MaxKeepAliveRequests: The maximum number of requests to allow
Ryan Haggerty e50d1d
# during a persistent connection. Set to 0 to allow an unlimited amount.
Ryan Haggerty e50d1d
# We recommend you leave this number high, for maximum performance.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
MaxKeepAliveRequests 100
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# KeepAliveTimeout: Number of seconds to wait for the next request from the
Ryan Haggerty e50d1d
# same client on the same connection.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
KeepAliveTimeout 15
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
##
Ryan Haggerty e50d1d
## Server-Pool Size Regulation (MPM specific)
Ryan Haggerty e50d1d
## 
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
# prefork MPM
Ryan Haggerty e50d1d
# StartServers: number of server processes to start
Ryan Haggerty e50d1d
# MinSpareServers: minimum number of server processes which are kept spare
Ryan Haggerty e50d1d
# MaxSpareServers: maximum number of server processes which are kept spare
Ryan Haggerty e50d1d
# ServerLimit: maximum value for MaxClients for the lifetime of the server
Ryan Haggerty e50d1d
# MaxClients: maximum number of server processes allowed to start
Ryan Haggerty e50d1d
# MaxRequestsPerChild: maximum number of requests a server process serves
Ryan Haggerty e50d1d
<IfModule prefork.c>
Ryan Haggerty e50d1d
StartServers       8
Ryan Haggerty e50d1d
MinSpareServers    5
Ryan Haggerty e50d1d
MaxSpareServers   20
Ryan Haggerty e50d1d
ServerLimit      256
Ryan Haggerty e50d1d
MaxClients       256
Ryan Haggerty e50d1d
MaxRequestsPerChild  4000
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
# worker MPM
Ryan Haggerty e50d1d
# StartServers: initial number of server processes to start
Ryan Haggerty e50d1d
# MaxClients: maximum number of simultaneous client connections
Ryan Haggerty e50d1d
# MinSpareThreads: minimum number of worker threads which are kept spare
Ryan Haggerty e50d1d
# MaxSpareThreads: maximum number of worker threads which are kept spare
Ryan Haggerty e50d1d
# ThreadsPerChild: constant number of worker threads in each server process
Ryan Haggerty e50d1d
# MaxRequestsPerChild: maximum number of requests a server process serves
Ryan Haggerty e50d1d
<IfModule worker.c>
Ryan Haggerty e50d1d
StartServers         2
Ryan Haggerty e50d1d
MaxClients         150
Ryan Haggerty e50d1d
MinSpareThreads     25
Ryan Haggerty e50d1d
MaxSpareThreads     75 
Ryan Haggerty e50d1d
ThreadsPerChild     25
Ryan Haggerty e50d1d
MaxRequestsPerChild  0
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Listen: Allows you to bind Apache to specific IP addresses and/or
Ryan Haggerty e50d1d
# ports, in addition to the default. See also the <VirtualHost>
Ryan Haggerty e50d1d
# directive.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Change this to Listen on specific IP addresses as shown below to 
Ryan Haggerty e50d1d
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#Listen 12.34.56.78:80
Ryan Haggerty e50d1d
Listen 80
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Dynamic Shared Object (DSO) Support
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# To be able to use the functionality of a module which was built as a DSO you
Ryan Haggerty e50d1d
# have to place corresponding `LoadModule' lines at this location so the
Ryan Haggerty e50d1d
# directives contained in it are actually available _before_ they are used.
Ryan Haggerty e50d1d
# Statically compiled modules (those listed by `httpd -l') do not need
Ryan Haggerty e50d1d
# to be loaded here.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Example:
Ryan Haggerty e50d1d
# LoadModule foo_module modules/mod_foo.so
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
LoadModule access_module modules/mod_access.so
Ryan Haggerty e50d1d
LoadModule auth_module modules/mod_auth.so
Ryan Haggerty e50d1d
LoadModule auth_anon_module modules/mod_auth_anon.so
Ryan Haggerty e50d1d
LoadModule auth_dbm_module modules/mod_auth_dbm.so
Ryan Haggerty e50d1d
LoadModule auth_digest_module modules/mod_auth_digest.so
Ryan Haggerty e50d1d
LoadModule ldap_module modules/mod_ldap.so
Ryan Haggerty e50d1d
LoadModule auth_ldap_module modules/mod_auth_ldap.so
Ryan Haggerty e50d1d
LoadModule include_module modules/mod_include.so
Ryan Haggerty e50d1d
LoadModule log_config_module modules/mod_log_config.so
Ryan Haggerty e50d1d
LoadModule logio_module modules/mod_logio.so
Ryan Haggerty e50d1d
LoadModule env_module modules/mod_env.so
Ryan Haggerty e50d1d
LoadModule ext_filter_module modules/mod_ext_filter.so
Ryan Haggerty e50d1d
LoadModule mime_magic_module modules/mod_mime_magic.so
Ryan Haggerty e50d1d
LoadModule expires_module modules/mod_expires.so
Ryan Haggerty e50d1d
LoadModule deflate_module modules/mod_deflate.so
Ryan Haggerty e50d1d
LoadModule headers_module modules/mod_headers.so
Ryan Haggerty e50d1d
LoadModule usertrack_module modules/mod_usertrack.so
Ryan Haggerty e50d1d
LoadModule setenvif_module modules/mod_setenvif.so
Ryan Haggerty e50d1d
LoadModule mime_module modules/mod_mime.so
Ryan Haggerty e50d1d
LoadModule dav_module modules/mod_dav.so
Ryan Haggerty e50d1d
LoadModule status_module modules/mod_status.so
Ryan Haggerty e50d1d
LoadModule autoindex_module modules/mod_autoindex.so
Ryan Haggerty e50d1d
LoadModule info_module modules/mod_info.so
Ryan Haggerty e50d1d
LoadModule dav_fs_module modules/mod_dav_fs.so
Ryan Haggerty e50d1d
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Ryan Haggerty e50d1d
LoadModule negotiation_module modules/mod_negotiation.so
Ryan Haggerty e50d1d
LoadModule dir_module modules/mod_dir.so
Ryan Haggerty e50d1d
LoadModule actions_module modules/mod_actions.so
Ryan Haggerty e50d1d
LoadModule speling_module modules/mod_speling.so
Ryan Haggerty e50d1d
LoadModule userdir_module modules/mod_userdir.so
Ryan Haggerty e50d1d
LoadModule alias_module modules/mod_alias.so
Ryan Haggerty e50d1d
LoadModule rewrite_module modules/mod_rewrite.so
Ryan Haggerty e50d1d
LoadModule proxy_module modules/mod_proxy.so
Ryan Haggerty e50d1d
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
Ryan Haggerty e50d1d
LoadModule proxy_http_module modules/mod_proxy_http.so
Ryan Haggerty e50d1d
LoadModule proxy_connect_module modules/mod_proxy_connect.so
Ryan Haggerty e50d1d
LoadModule cache_module modules/mod_cache.so
Ryan Haggerty e50d1d
LoadModule suexec_module modules/mod_suexec.so
Ryan Haggerty e50d1d
LoadModule disk_cache_module modules/mod_disk_cache.so
Ryan Haggerty e50d1d
LoadModule file_cache_module modules/mod_file_cache.so
Ryan Haggerty e50d1d
LoadModule mem_cache_module modules/mod_mem_cache.so
Ryan Haggerty e50d1d
LoadModule cgi_module modules/mod_cgi.so
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The following modules are not loaded by default:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#LoadModule cern_meta_module modules/mod_cern_meta.so
Ryan Haggerty e50d1d
#LoadModule asis_module modules/mod_asis.so
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Load config files from the config directory "/etc/httpd/conf.d".
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Include conf.d/*.conf
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ExtendedStatus controls whether Apache will generate "full" status
Ryan Haggerty e50d1d
# information (ExtendedStatus On) or just basic information (ExtendedStatus
Ryan Haggerty e50d1d
# Off) when the "server-status" handler is called. The default is Off.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#ExtendedStatus On
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# If you wish httpd to run as a different user or group, you must run
Ryan Haggerty e50d1d
# httpd as root initially and it will switch.  
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# User/Group: The name (or #number) of the user/group to run httpd as.
Ryan Haggerty e50d1d
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
Ryan Haggerty e50d1d
#  . On HPUX you may not be able to use shared memory as nobody, and the
Ryan Haggerty e50d1d
#    suggested workaround is to create a user www and use that user.
Ryan Haggerty e50d1d
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
Ryan Haggerty e50d1d
#  when the value of (unsigned)Group is above 60000; 
Ryan Haggerty e50d1d
#  don't use Group #-1 on these systems!
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
User apache
Ryan Haggerty e50d1d
Group apache
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
### Section 2: 'Main' server configuration
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The directives in this section set up the values used by the 'main'
Ryan Haggerty e50d1d
# server, which responds to any requests that aren't handled by a
Ryan Haggerty e50d1d
# <VirtualHost> definition.  These values also provide defaults for
Ryan Haggerty e50d1d
# any <VirtualHost> containers you may define later in the file.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# All of these directives may appear inside <VirtualHost> containers,
Ryan Haggerty e50d1d
# in which case these default settings will be overridden for the
Ryan Haggerty e50d1d
# virtual host being defined.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ServerAdmin: Your address, where problems with the server should be
Ryan Haggerty e50d1d
# e-mailed.  This address appears on some server-generated pages, such
Ryan Haggerty e50d1d
# as error documents.  e.g. admin@your-domain.com
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
ServerAdmin root@localhost
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ServerName gives the name and port that the server uses to identify itself.
Ryan Haggerty e50d1d
# This can often be determined automatically, but we recommend you specify
Ryan Haggerty e50d1d
# it explicitly to prevent problems during startup.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# If this is not set to valid DNS name for your host, server-generated
Ryan Haggerty e50d1d
# redirections will not work.  See also the UseCanonicalName directive.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# If your host doesn't have a registered DNS name, enter its IP address here.
Ryan Haggerty e50d1d
# You will have to access it by its address anyway, and this will make 
Ryan Haggerty e50d1d
# redirections work in a sensible way.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#ServerName www.example.com:80
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# UseCanonicalName: Determines how Apache constructs self-referencing 
Ryan Haggerty e50d1d
# URLs and the SERVER_NAME and SERVER_PORT variables.
Ryan Haggerty e50d1d
# When set "Off", Apache will use the Hostname and Port supplied
Ryan Haggerty e50d1d
# by the client.  When set "On", Apache will use the value of the
Ryan Haggerty e50d1d
# ServerName directive.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
UseCanonicalName Off
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# DocumentRoot: The directory out of which you will serve your
Ryan Haggerty e50d1d
# documents. By default, all requests are taken from this directory, but
Ryan Haggerty e50d1d
# symbolic links and aliases may be used to point to other locations.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
DocumentRoot "/var/www/html"
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Each directory to which Apache has access can be configured with respect
Ryan Haggerty e50d1d
# to which services and features are allowed and/or disabled in that
Ryan Haggerty e50d1d
# directory (and its subdirectories). 
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# First, we configure the "default" to be a very restrictive set of 
Ryan Haggerty e50d1d
# features.  
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
<Directory />
Ryan Haggerty e50d1d
    Options FollowSymLinks
Ryan Haggerty e50d1d
    AllowOverride None
Ryan Haggerty e50d1d
</Directory>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Note that from this point forward you must specifically allow
Ryan Haggerty e50d1d
# particular features to be enabled - so if something's not working as
Ryan Haggerty e50d1d
# you might expect, make sure that you have specifically enabled it
Ryan Haggerty e50d1d
# below.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# This should be changed to whatever you set DocumentRoot to.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
<Directory "/var/www/html">
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Possible values for the Options directive are "None", "All",
Ryan Haggerty e50d1d
# or any combination of:
Ryan Haggerty e50d1d
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Note that "MultiViews" must be named *explicitly* --- "Options All"
Ryan Haggerty e50d1d
# doesn't give it to you.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The Options directive is both complicated and important.  Please see
Ryan Haggerty e50d1d
# http://httpd.apache.org/docs-2.0/mod/core.html#options
Ryan Haggerty e50d1d
# for more information.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
    Options Indexes FollowSymLinks
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AllowOverride controls what directives may be placed in .htaccess files.
Ryan Haggerty e50d1d
# It can be "All", "None", or any combination of the keywords:
Ryan Haggerty e50d1d
#   Options FileInfo AuthConfig Limit
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
    AllowOverride None
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Controls who can get stuff from this server.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
    Order allow,deny
Ryan Haggerty e50d1d
    Allow from all
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
</Directory>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# UserDir: The name of the directory that is appended onto a user's home
Ryan Haggerty e50d1d
# directory if a ~user request is received.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The path to the end user account 'public_html' directory must be
Ryan Haggerty e50d1d
# accessible to the webserver userid.  This usually means that ~userid
Ryan Haggerty e50d1d
# must have permissions of 711, ~userid/public_html must have permissions
Ryan Haggerty e50d1d
# of 755, and documents contained therein must be world-readable.
Ryan Haggerty e50d1d
# Otherwise, the client will only receive a "403 Forbidden" message.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
<IfModule mod_userdir.c>
Ryan Haggerty e50d1d
    #
Ryan Haggerty e50d1d
    # UserDir is disabled by default since it can confirm the presence
Ryan Haggerty e50d1d
    # of a username on the system (depending on home directory
Ryan Haggerty e50d1d
    # permissions).
Ryan Haggerty e50d1d
    #
Ryan Haggerty e50d1d
    UserDir disable
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
    #
Ryan Haggerty e50d1d
    # To enable requests to /~user/ to serve the user's public_html
Ryan Haggerty e50d1d
    # directory, remove the "UserDir disable" line above, and uncomment
Ryan Haggerty e50d1d
    # the following line instead:
Ryan Haggerty e50d1d
    # 
Ryan Haggerty e50d1d
    #UserDir public_html
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Control access to UserDir directories.  The following is an example
Ryan Haggerty e50d1d
# for a site where these directories are restricted to read-only.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<Directory /home/*/public_html>
Ryan Haggerty e50d1d
#    AllowOverride FileInfo AuthConfig Limit
Ryan Haggerty e50d1d
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Ryan Haggerty e50d1d
#    <Limit GET POST OPTIONS>
Ryan Haggerty e50d1d
#        Order allow,deny
Ryan Haggerty e50d1d
#        Allow from all
Ryan Haggerty e50d1d
#    </Limit>
Ryan Haggerty e50d1d
#    <LimitExcept GET POST OPTIONS>
Ryan Haggerty e50d1d
#        Order deny,allow
Ryan Haggerty e50d1d
#        Deny from all
Ryan Haggerty e50d1d
#    </LimitExcept>
Ryan Haggerty e50d1d
#</Directory>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# DirectoryIndex: sets the file that Apache will serve if a directory
Ryan Haggerty e50d1d
# is requested.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The index.html.var file (a type-map) is used to deliver content-
Ryan Haggerty e50d1d
# negotiated documents.  The MultiViews Option can be used for the 
Ryan Haggerty e50d1d
# same purpose, but it is much slower.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
DirectoryIndex index.html index.html.var
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AccessFileName: The name of the file to look for in each directory
Ryan Haggerty e50d1d
# for additional configuration directives.  See also the AllowOverride
Ryan Haggerty e50d1d
# directive.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AccessFileName .htaccess
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The following lines prevent .htaccess and .htpasswd files from being 
Ryan Haggerty e50d1d
# viewed by Web clients. 
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
<Files ~ "^\.ht">
Ryan Haggerty e50d1d
    Order allow,deny
Ryan Haggerty e50d1d
    Deny from all
Ryan Haggerty e50d1d
</Files>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# TypesConfig describes where the mime.types file (or equivalent) is
Ryan Haggerty e50d1d
# to be found.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
TypesConfig /etc/mime.types
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# DefaultType is the default MIME type the server will use for a document
Ryan Haggerty e50d1d
# if it cannot otherwise determine one, such as from filename extensions.
Ryan Haggerty e50d1d
# If your server contains mostly text or HTML documents, "text/plain" is
Ryan Haggerty e50d1d
# a good value.  If most of your content is binary, such as applications
Ryan Haggerty e50d1d
# or images, you may want to use "application/octet-stream" instead to
Ryan Haggerty e50d1d
# keep browsers from trying to display binary files as though they are
Ryan Haggerty e50d1d
# text.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
DefaultType text/plain
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The mod_mime_magic module allows the server to use various hints from the
Ryan Haggerty e50d1d
# contents of the file itself to determine its type.  The MIMEMagicFile
Ryan Haggerty e50d1d
# directive tells the module where the hint definitions are located.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
<IfModule mod_mime_magic.c>
Ryan Haggerty e50d1d
#   MIMEMagicFile /usr/share/magic.mime
Ryan Haggerty e50d1d
    MIMEMagicFile conf/magic
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# HostnameLookups: Log the names of clients or just their IP addresses
Ryan Haggerty e50d1d
# e.g., www.apache.org (on) or 204.62.129.132 (off).
Ryan Haggerty e50d1d
# The default is off because it'd be overall better for the net if people
Ryan Haggerty e50d1d
# had to knowingly turn this feature on, since enabling it means that
Ryan Haggerty e50d1d
# each client request will result in AT LEAST one lookup request to the
Ryan Haggerty e50d1d
# nameserver.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
HostnameLookups Off
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# EnableMMAP: Control whether memory-mapping is used to deliver
Ryan Haggerty e50d1d
# files (assuming that the underlying OS supports it).
Ryan Haggerty e50d1d
# The default is on; turn this off if you serve from NFS-mounted 
Ryan Haggerty e50d1d
# filesystems.  On some systems, turning it off (regardless of
Ryan Haggerty e50d1d
# filesystem) can improve performance; for details, please see
Ryan Haggerty e50d1d
# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#EnableMMAP off
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# EnableSendfile: Control whether the sendfile kernel support is 
Ryan Haggerty e50d1d
# used to deliver files (assuming that the OS supports it). 
Ryan Haggerty e50d1d
# The default is on; turn this off if you serve from NFS-mounted 
Ryan Haggerty e50d1d
# filesystems.  Please see
Ryan Haggerty e50d1d
# http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#EnableSendfile off
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ErrorLog: The location of the error log file.
Ryan Haggerty e50d1d
# If you do not specify an ErrorLog directive within a <VirtualHost>
Ryan Haggerty e50d1d
# container, error messages relating to that virtual host will be
Ryan Haggerty e50d1d
# logged here.  If you *do* define an error logfile for a <VirtualHost>
Ryan Haggerty e50d1d
# container, that host's errors will be logged there and not here.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
ErrorLog logs/error_log
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# LogLevel: Control the number of messages logged to the error_log.
Ryan Haggerty e50d1d
# Possible values include: debug, info, notice, warn, error, crit,
Ryan Haggerty e50d1d
# alert, emerg.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
LogLevel warn
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The following directives define some format nicknames for use with
Ryan Haggerty e50d1d
# a CustomLog directive (see below).
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
Ryan Haggerty e50d1d
LogFormat "%h %l %u %t \"%r\" %>s %b" common
Ryan Haggerty e50d1d
LogFormat "%{Referer}i -> %U" referer
Ryan Haggerty e50d1d
LogFormat "%{User-agent}i" agent
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
Ryan Haggerty e50d1d
# requires the mod_logio module to be loaded.
Ryan Haggerty e50d1d
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The location and format of the access logfile (Common Logfile Format).
Ryan Haggerty e50d1d
# If you do not define any access logfiles within a <VirtualHost>
Ryan Haggerty e50d1d
# container, they will be logged here.  Contrariwise, if you *do*
Ryan Haggerty e50d1d
# define per-<VirtualHost> access logfiles, transactions will be
Ryan Haggerty e50d1d
# logged therein and *not* in this file.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#CustomLog logs/access_log common
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# If you would like to have separate agent and referer logfiles, uncomment
Ryan Haggerty e50d1d
# the following directives.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#CustomLog logs/referer_log referer
Ryan Haggerty e50d1d
#CustomLog logs/agent_log agent
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# For a single logfile with access, agent, and referer information
Ryan Haggerty e50d1d
# (Combined Logfile Format), use the following directive:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
CustomLog logs/access_log combined
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Optionally add a line containing the server version and virtual host
Ryan Haggerty e50d1d
# name to server-generated pages (internal error documents, FTP directory
Ryan Haggerty e50d1d
# listings, mod_status and mod_info output etc., but not CGI generated
Ryan Haggerty e50d1d
# documents or custom error documents).
Ryan Haggerty e50d1d
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
Ryan Haggerty e50d1d
# Set to one of:  On | Off | EMail
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
ServerSignature On
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Aliases: Add here as many aliases as you need (with no limit). The format is 
Ryan Haggerty e50d1d
# Alias fakename realname
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Note that if you include a trailing / on fakename then the server will
Ryan Haggerty e50d1d
# require it to be present in the URL.  So "/icons" isn't aliased in this
Ryan Haggerty e50d1d
# example, only "/icons/".  If the fakename is slash-terminated, then the 
Ryan Haggerty e50d1d
# realname must also be slash terminated, and if the fakename omits the 
Ryan Haggerty e50d1d
# trailing slash, the realname must also omit it.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# We include the /icons/ alias for FancyIndexed directory listings.  If you
Ryan Haggerty e50d1d
# do not use FancyIndexing, you may comment this out.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Alias /icons/ "/var/www/icons/"
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
<Directory "/var/www/icons">
Ryan Haggerty e50d1d
    Options Indexes MultiViews
Ryan Haggerty e50d1d
    AllowOverride None
Ryan Haggerty e50d1d
    Order allow,deny
Ryan Haggerty e50d1d
    Allow from all
Ryan Haggerty e50d1d
</Directory>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# WebDAV module configuration section.
Ryan Haggerty e50d1d
# 
Ryan Haggerty e50d1d
<IfModule mod_dav_fs.c>
Ryan Haggerty e50d1d
    # Location of the WebDAV lock database.
Ryan Haggerty e50d1d
    DAVLockDB /var/lib/dav/lockdb
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ScriptAlias: This controls which directories contain server scripts.
Ryan Haggerty e50d1d
# ScriptAliases are essentially the same as Aliases, except that
Ryan Haggerty e50d1d
# documents in the realname directory are treated as applications and
Ryan Haggerty e50d1d
# run by the server when requested rather than as documents sent to the client.
Ryan Haggerty e50d1d
# The same rules about trailing "/" apply to ScriptAlias directives as to
Ryan Haggerty e50d1d
# Alias.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
Ryan Haggerty e50d1d
# CGI directory exists, if you have that configured.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
<Directory "/var/www/cgi-bin">
Ryan Haggerty e50d1d
    AllowOverride None
Ryan Haggerty e50d1d
    Options None
Ryan Haggerty e50d1d
    Order allow,deny
Ryan Haggerty e50d1d
    Allow from all
Ryan Haggerty e50d1d
</Directory>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
Ryan Haggerty e50d1d
<Directory /usr/lib/mailman/cgi-bin/>
Ryan Haggerty e50d1d
    AllowOverride None
Ryan Haggerty e50d1d
    Options ExecCGI
Ryan Haggerty e50d1d
    Order allow,deny
Ryan Haggerty e50d1d
    Allow from all
Ryan Haggerty e50d1d
</Directory>
Ryan Haggerty e50d1d
Alias /pipermail/ /var/lib/mailman/archives/public/
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Redirect allows you to tell clients about documents which used to exist in
Ryan Haggerty e50d1d
# your server's namespace, but do not anymore. This allows you to tell the
Ryan Haggerty e50d1d
# clients where to look for the relocated document.
Ryan Haggerty e50d1d
# Example:
Ryan Haggerty e50d1d
# Redirect permanent /foo http://www.example.com/bar
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Directives controlling the display of server-generated directory listings.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# IndexOptions: Controls the appearance of server-generated directory
Ryan Haggerty e50d1d
# listings.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
IndexOptions FancyIndexing VersionSort NameWidth=*
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AddIcon* directives tell the server which icon to show for different
Ryan Haggerty e50d1d
# files or filename extensions.  These are only displayed for
Ryan Haggerty e50d1d
# FancyIndexed directories.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
AddIconByType (TXT,/icons/text.gif) text/*
Ryan Haggerty e50d1d
AddIconByType (IMG,/icons/image2.gif) image/*
Ryan Haggerty e50d1d
AddIconByType (SND,/icons/sound2.gif) audio/*
Ryan Haggerty e50d1d
AddIconByType (VID,/icons/movie.gif) video/*
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
AddIcon /icons/binary.gif .bin .exe
Ryan Haggerty e50d1d
AddIcon /icons/binhex.gif .hqx
Ryan Haggerty e50d1d
AddIcon /icons/tar.gif .tar
Ryan Haggerty e50d1d
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
Ryan Haggerty e50d1d
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
Ryan Haggerty e50d1d
AddIcon /icons/a.gif .ps .ai .eps
Ryan Haggerty e50d1d
AddIcon /icons/layout.gif .html .shtml .htm .pdf
Ryan Haggerty e50d1d
AddIcon /icons/text.gif .txt
Ryan Haggerty e50d1d
AddIcon /icons/c.gif .c
Ryan Haggerty e50d1d
AddIcon /icons/p.gif .pl .py
Ryan Haggerty e50d1d
AddIcon /icons/f.gif .for
Ryan Haggerty e50d1d
AddIcon /icons/dvi.gif .dvi
Ryan Haggerty e50d1d
AddIcon /icons/uuencoded.gif .uu
Ryan Haggerty e50d1d
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
Ryan Haggerty e50d1d
AddIcon /icons/tex.gif .tex
Ryan Haggerty e50d1d
AddIcon /icons/bomb.gif core
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
AddIcon /icons/back.gif ..
Ryan Haggerty e50d1d
AddIcon /icons/hand.right.gif README
Ryan Haggerty e50d1d
AddIcon /icons/folder.gif ^^DIRECTORY^^
Ryan Haggerty e50d1d
AddIcon /icons/blank.gif ^^BLANKICON^^
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# DefaultIcon is which icon to show for files which do not have an icon
Ryan Haggerty e50d1d
# explicitly set.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
DefaultIcon /icons/unknown.gif
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AddDescription allows you to place a short description after a file in
Ryan Haggerty e50d1d
# server-generated indexes.  These are only displayed for FancyIndexed
Ryan Haggerty e50d1d
# directories.
Ryan Haggerty e50d1d
# Format: AddDescription "description" filename
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#AddDescription "GZIP compressed document" .gz
Ryan Haggerty e50d1d
#AddDescription "tar archive" .tar
Ryan Haggerty e50d1d
#AddDescription "GZIP compressed tar archive" .tgz
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ReadmeName is the name of the README file the server will look for by
Ryan Haggerty e50d1d
# default, and append to directory listings.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# HeaderName is the name of a file which should be prepended to
Ryan Haggerty e50d1d
# directory indexes. 
Ryan Haggerty e50d1d
ReadmeName README.html
Ryan Haggerty e50d1d
HeaderName HEADER.html
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# IndexIgnore is a set of filenames which directory indexing should ignore
Ryan Haggerty e50d1d
# and not include in the listing.  Shell-style wildcarding is permitted.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# DefaultLanguage and AddLanguage allows you to specify the language of 
Ryan Haggerty e50d1d
# a document. You can then use content negotiation to give a browser a 
Ryan Haggerty e50d1d
# file in a language the user can understand.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Specify a default language. This means that all data
Ryan Haggerty e50d1d
# going out without a specific language tag (see below) will 
Ryan Haggerty e50d1d
# be marked with this one. You probably do NOT want to set
Ryan Haggerty e50d1d
# this unless you are sure it is correct for all cases.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# * It is generally better to not mark a page as 
Ryan Haggerty e50d1d
# * being a certain language than marking it with the wrong
Ryan Haggerty e50d1d
# * language!
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# DefaultLanguage nl
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Note 1: The suffix does not have to be the same as the language
Ryan Haggerty e50d1d
# keyword --- those with documents in Polish (whose net-standard
Ryan Haggerty e50d1d
# language code is pl) may wish to use "AddLanguage pl .po" to
Ryan Haggerty e50d1d
# avoid the ambiguity with the common suffix for perl scripts.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Note 2: The example entries below illustrate that in some cases 
Ryan Haggerty e50d1d
# the two character 'Language' abbreviation is not identical to 
Ryan Haggerty e50d1d
# the two character 'Country' code for its country,
Ryan Haggerty e50d1d
# E.g. 'Danmark/dk' versus 'Danish/da'.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
Ryan Haggerty e50d1d
# specifier. There is 'work in progress' to fix this and get
Ryan Haggerty e50d1d
# the reference data for rfc1766 cleaned up.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
Ryan Haggerty e50d1d
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
Ryan Haggerty e50d1d
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
Ryan Haggerty e50d1d
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
Ryan Haggerty e50d1d
# Norwegian (no) - Polish (pl) - Portugese (pt)
Ryan Haggerty e50d1d
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
Ryan Haggerty e50d1d
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AddLanguage ca .ca
Ryan Haggerty e50d1d
AddLanguage cs .cz .cs
Ryan Haggerty e50d1d
AddLanguage da .dk
Ryan Haggerty e50d1d
AddLanguage de .de
Ryan Haggerty e50d1d
AddLanguage el .el
Ryan Haggerty e50d1d
AddLanguage en .en
Ryan Haggerty e50d1d
AddLanguage eo .eo
Ryan Haggerty e50d1d
AddLanguage es .es
Ryan Haggerty e50d1d
AddLanguage et .et
Ryan Haggerty e50d1d
AddLanguage fr .fr
Ryan Haggerty e50d1d
AddLanguage he .he
Ryan Haggerty e50d1d
AddLanguage hr .hr
Ryan Haggerty e50d1d
AddLanguage it .it
Ryan Haggerty e50d1d
AddLanguage ja .ja
Ryan Haggerty e50d1d
AddLanguage ko .ko
Ryan Haggerty e50d1d
AddLanguage ltz .ltz
Ryan Haggerty e50d1d
AddLanguage nl .nl
Ryan Haggerty e50d1d
AddLanguage nn .nn
Ryan Haggerty e50d1d
AddLanguage no .no
Ryan Haggerty e50d1d
AddLanguage pl .po
Ryan Haggerty e50d1d
AddLanguage pt .pt
Ryan Haggerty e50d1d
AddLanguage pt-BR .pt-br
Ryan Haggerty e50d1d
AddLanguage ru .ru
Ryan Haggerty e50d1d
AddLanguage sv .sv
Ryan Haggerty e50d1d
AddLanguage zh-CN .zh-cn
Ryan Haggerty e50d1d
AddLanguage zh-TW .zh-tw
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# LanguagePriority allows you to give precedence to some languages
Ryan Haggerty e50d1d
# in case of a tie during content negotiation.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Just list the languages in decreasing order of preference. We have
Ryan Haggerty e50d1d
# more or less alphabetized them here. You probably want to change this.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# ForceLanguagePriority allows you to serve a result page rather than
Ryan Haggerty e50d1d
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
Ryan Haggerty e50d1d
# [in case no accepted languages matched the available variants]
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
ForceLanguagePriority Prefer Fallback
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Specify a default charset for all content served; this enables
Ryan Haggerty e50d1d
# interpretation of all content as UTF-8 by default.  To use the 
Ryan Haggerty e50d1d
# default browser choice (ISO-8859-1), or to allow the META tags
Ryan Haggerty e50d1d
# in HTML content to override this choice, comment out this
Ryan Haggerty e50d1d
# directive:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AddDefaultCharset UTF-8
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AddType allows you to add to or override the MIME configuration
Ryan Haggerty e50d1d
# file mime.types for specific file types.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#AddType application/x-tar .tgz
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AddEncoding allows you to have certain browsers uncompress
Ryan Haggerty e50d1d
# information on the fly. Note: Not all browsers support this.
Ryan Haggerty e50d1d
# Despite the name similarity, the following Add* directives have nothing
Ryan Haggerty e50d1d
# to do with the FancyIndexing customization directives above.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#AddEncoding x-compress .Z
Ryan Haggerty e50d1d
#AddEncoding x-gzip .gz .tgz
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
# If the AddEncoding directives above are commented-out, then you
Ryan Haggerty e50d1d
# probably should define those extensions to indicate media types:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AddType application/x-compress .Z
Ryan Haggerty e50d1d
AddType application/x-gzip .gz .tgz
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# AddHandler allows you to map certain file extensions to "handlers":
Ryan Haggerty e50d1d
# actions unrelated to filetype. These can be either built into the server
Ryan Haggerty e50d1d
# or added with the Action directive (see below)
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# To use CGI scripts outside of ScriptAliased directories:
Ryan Haggerty e50d1d
# (You will also need to add "ExecCGI" to the "Options" directive.)
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#AddHandler cgi-script .cgi
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# For files that include their own HTTP headers:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#AddHandler send-as-is asis
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# For type maps (negotiated resources):
Ryan Haggerty e50d1d
# (This is enabled by default to allow the Apache "It Worked" page
Ryan Haggerty e50d1d
#  to be distributed in multiple languages.)
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AddHandler type-map var
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Filters allow you to process content before it is sent to the client.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# To parse .shtml files for server-side includes (SSI):
Ryan Haggerty e50d1d
# (You will also need to add "Includes" to the "Options" directive.)
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
AddType text/html .shtml
Ryan Haggerty e50d1d
AddOutputFilter INCLUDES .shtml
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Action lets you define media types that will execute a script whenever
Ryan Haggerty e50d1d
# a matching file is called. This eliminates the need for repeated URL
Ryan Haggerty e50d1d
# pathnames for oft-used CGI file processors.
Ryan Haggerty e50d1d
# Format: Action media/type /cgi-script/location
Ryan Haggerty e50d1d
# Format: Action handler-name /cgi-script/location
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Customizable error responses come in three flavors:
Ryan Haggerty e50d1d
# 1) plain text 2) local redirects 3) external redirects
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Some examples:
Ryan Haggerty e50d1d
#ErrorDocument 500 "The server made a boo boo."
Ryan Haggerty e50d1d
#ErrorDocument 404 /missing.html
Ryan Haggerty e50d1d
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
Ryan Haggerty e50d1d
#ErrorDocument 402 http://www.example.com/subscription_info.html
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Putting this all together, we can internationalize error responses.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
Ryan Haggerty e50d1d
# our collection of by-error message multi-language collections.  We use 
Ryan Haggerty e50d1d
# includes to substitute the appropriate text.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# You can modify the messages' appearance without changing any of the
Ryan Haggerty e50d1d
# default HTTP_<error>.html.var files by adding the line:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#   Alias /error/include/ "/your/include/path/"
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# which allows you to create your own set of files by starting with the
Ryan Haggerty e50d1d
# /var/www/error/include/ files and
Ryan Haggerty e50d1d
# copying them to /your/include/path/, even on a per-VirtualHost basis.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
Alias /error/ "/var/www/error/"
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
<IfModule mod_negotiation.c>
Ryan Haggerty e50d1d
<IfModule mod_include.c>
Ryan Haggerty e50d1d
    <Directory "/var/www/error">
Ryan Haggerty e50d1d
        AllowOverride None
Ryan Haggerty e50d1d
        Options IncludesNoExec
Ryan Haggerty e50d1d
        AddOutputFilter Includes html
Ryan Haggerty e50d1d
        AddHandler type-map var
Ryan Haggerty e50d1d
        Order allow,deny
Ryan Haggerty e50d1d
        Allow from all
Ryan Haggerty e50d1d
        LanguagePriority en es de fr
Ryan Haggerty e50d1d
        ForceLanguagePriority Prefer Fallback
Ryan Haggerty e50d1d
    </Directory>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 410 /error/HTTP_GONE.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
Ryan Haggerty e50d1d
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
</IfModule>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The following directives modify normal HTTP response behavior to
Ryan Haggerty e50d1d
# handle known problems with browser implementations.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
BrowserMatch "Mozilla/2" nokeepalive
Ryan Haggerty e50d1d
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
Ryan Haggerty e50d1d
BrowserMatch "RealPlayer 4\.0" force-response-1.0
Ryan Haggerty e50d1d
BrowserMatch "Java/1\.0" force-response-1.0
Ryan Haggerty e50d1d
BrowserMatch "JDK/1\.0" force-response-1.0
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# The following directive disables redirects on non-GET requests for
Ryan Haggerty e50d1d
# a directory that does not include the trailing slash.  This fixes a 
Ryan Haggerty e50d1d
# problem with Microsoft WebFolders which does not appropriately handle 
Ryan Haggerty e50d1d
# redirects for folders with DAV methods.
Ryan Haggerty e50d1d
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
Ryan Haggerty e50d1d
BrowserMatch "^WebDrive" redirect-carefully
Ryan Haggerty e50d1d
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
Ryan Haggerty e50d1d
BrowserMatch "^gnome-vfs" redirect-carefully
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Allow server status reports generated by mod_status,
Ryan Haggerty e50d1d
# with the URL of http://servername/server-status
Ryan Haggerty e50d1d
# Change the ".example.com" to match your domain to enable.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<Location /server-status>
Ryan Haggerty e50d1d
#    SetHandler server-status
Ryan Haggerty e50d1d
#    Order deny,allow
Ryan Haggerty e50d1d
#    Deny from all
Ryan Haggerty e50d1d
#    Allow from .example.com
Ryan Haggerty e50d1d
#</Location>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Allow remote server configuration reports, with the URL of
Ryan Haggerty e50d1d
#  http://servername/server-info (requires that mod_info.c be loaded).
Ryan Haggerty e50d1d
# Change the ".example.com" to match your domain to enable.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<Location /server-info>
Ryan Haggerty e50d1d
#    SetHandler server-info
Ryan Haggerty e50d1d
#    Order deny,allow
Ryan Haggerty e50d1d
#    Deny from all
Ryan Haggerty e50d1d
#    Allow from .example.com
Ryan Haggerty e50d1d
#</Location>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Proxy Server directives. Uncomment the following lines to
Ryan Haggerty e50d1d
# enable the proxy server:
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<IfModule mod_proxy.c>
Ryan Haggerty e50d1d
#ProxyRequests On
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<Proxy *>
Ryan Haggerty e50d1d
#    Order deny,allow
Ryan Haggerty e50d1d
#    Deny from all
Ryan Haggerty e50d1d
#    Allow from .example.com
Ryan Haggerty e50d1d
#</Proxy>
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
Ryan Haggerty e50d1d
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
Ryan Haggerty e50d1d
# Set to one of: Off | On | Full | Block
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#ProxyVia On
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# To enable a cache of proxied content, uncomment the following lines.
Ryan Haggerty e50d1d
# See http://httpd.apache.org/docs-2.0/mod/mod_cache.html for more details.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<IfModule mod_disk_cache.c>
Ryan Haggerty e50d1d
#   CacheEnable disk /
Ryan Haggerty e50d1d
#   CacheRoot "/var/cache/mod_proxy"
Ryan Haggerty e50d1d
#</IfModule>
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#</IfModule>
Ryan Haggerty e50d1d
# End of proxy directives.
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
### Section 3: Virtual Hosts
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# VirtualHost: If you want to maintain multiple domains/hostnames on your
Ryan Haggerty e50d1d
# machine you can setup VirtualHost containers for them. Most configurations
Ryan Haggerty e50d1d
# use only name-based virtual hosts so the server doesn't need to worry about
Ryan Haggerty e50d1d
# IP addresses. This is indicated by the asterisks in the directives below.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Please see the documentation at 
Ryan Haggerty e50d1d
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
Ryan Haggerty e50d1d
# for further details before you try to setup virtual hosts.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# You may use the command line option '-S' to verify your virtual host
Ryan Haggerty e50d1d
# configuration.
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# Use name-based virtual hosting.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#NameVirtualHost *:80
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# NOTE: NameVirtualHost cannot be used without a port specifier 
Ryan Haggerty e50d1d
# (e.g. :80) if mod_ssl is being used, due to the nature of the
Ryan Haggerty e50d1d
# SSL protocol.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
# VirtualHost example:
Ryan Haggerty e50d1d
# Almost any Apache directive may go into a VirtualHost container.
Ryan Haggerty e50d1d
# The first VirtualHost section is used for requests without a known
Ryan Haggerty e50d1d
# server name.
Ryan Haggerty e50d1d
#
Ryan Haggerty e50d1d
#<VirtualHost *:80>
Ryan Haggerty e50d1d
#    ServerAdmin webmaster@dummy-host.example.com
Ryan Haggerty e50d1d
#    DocumentRoot /www/docs/dummy-host.example.com
Ryan Haggerty e50d1d
#    ServerName dummy-host.example.com
Ryan Haggerty e50d1d
#    ErrorLog logs/dummy-host.example.com-error_log
Ryan Haggerty e50d1d
#    CustomLog logs/dummy-host.example.com-access_log common
Ryan Haggerty e50d1d
#</VirtualHost>