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