| 1 |
# This configuration file reflects default settings for Apache HTTP Server.
|
| 2 |
# You may change these, but chances are that you may not need to.
|
| 3 |
|
| 4 |
# Timeout: The number of seconds before receives and sends time out.
|
| 5 |
Timeout 300
|
| 6 |
|
| 7 |
# KeepAlive: Whether or not to allow persistent connections (more than
|
| 8 |
# one request per connection). Set to "Off" to deactivate.
|
| 9 |
KeepAlive On
|
| 10 |
|
| 11 |
# MaxKeepAliveRequests: The maximum number of requests to allow
|
| 12 |
# during a persistent connection. Set to 0 to allow an unlimited amount.
|
| 13 |
# We recommend you leave this number high, for maximum performance.
|
| 14 |
MaxKeepAliveRequests 100
|
| 15 |
|
| 16 |
# KeepAliveTimeout: Number of seconds to wait for the next request from the
|
| 17 |
# same client on the same connection.
|
| 18 |
KeepAliveTimeout 15
|
| 19 |
|
| 20 |
# UseCanonicalName: Determines how Apache constructs self-referencing
|
| 21 |
# URLs and the SERVER_NAME and SERVER_PORT variables.
|
| 22 |
# When set "Off", Apache will use the Hostname and Port supplied
|
| 23 |
# by the client. When set "On", Apache will use the value of the
|
| 24 |
# ServerName directive.
|
| 25 |
UseCanonicalName Off
|
| 26 |
|
| 27 |
# AccessFileName: The name of the file to look for in each directory
|
| 28 |
# for additional configuration directives. See also the AllowOverride
|
| 29 |
# directive.
|
| 30 |
AccessFileName .htaccess
|
| 31 |
|
| 32 |
# ServerTokens
|
| 33 |
# This directive configures what you return as the Server HTTP response
|
| 34 |
# Header. The default is 'Full' which sends information about the OS-Type
|
| 35 |
# and compiled in modules.
|
| 36 |
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
|
| 37 |
# where Full conveys the most information, and Prod the least.
|
| 38 |
ServerTokens Prod
|
| 39 |
|
| 40 |
# TraceEnable
|
| 41 |
# This directive overrides the behavior of TRACE for both the core server and
|
| 42 |
# mod_proxy. The default TraceEnable on permits TRACE requests per RFC 2616,
|
| 43 |
# which disallows any request body to accompany the request. TraceEnable off
|
| 44 |
# causes the core server and mod_proxy to return a 405 (Method not allowed)
|
| 45 |
# error to the client.
|
| 46 |
# For security reasons this is turned off by default. (bug #240680)
|
| 47 |
TraceEnable off
|
| 48 |
|
| 49 |
# Optionally add a line containing the server version and virtual host
|
| 50 |
# name to server-generated pages (internal error documents, FTP directory
|
| 51 |
# listings, mod_status and mod_info output etc., but not CGI generated
|
| 52 |
# documents or custom error documents).
|
| 53 |
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
|
| 54 |
# Set to one of: On | Off | EMail
|
| 55 |
ServerSignature On
|
| 56 |
|
| 57 |
# HostnameLookups: Log the names of clients or just their IP addresses
|
| 58 |
# e.g., www.apache.org (on) or 204.62.129.132 (off).
|
| 59 |
# The default is off because it'd be overall better for the net if people
|
| 60 |
# had to knowingly turn this feature on, since enabling it means that
|
| 61 |
# each client request will result in AT LEAST one lookup request to the
|
| 62 |
# nameserver.
|
| 63 |
HostnameLookups Off
|
| 64 |
|
| 65 |
# EnableMMAP and EnableSendfile: On systems that support it,
|
| 66 |
# memory-mapping or the sendfile syscall is used to deliver
|
| 67 |
# files. This usually improves server performance, but must
|
| 68 |
# be turned off when serving from networked-mounted
|
| 69 |
# filesystems or if support for these functions is otherwise
|
| 70 |
# broken on your system.
|
| 71 |
EnableMMAP On
|
| 72 |
EnableSendfile On
|
| 73 |
|
| 74 |
# FileEtag: Configures the file attributes that are used to create
|
| 75 |
# the ETag (entity tag) response header field when the document is
|
| 76 |
# based on a static file. (The ETag value is used in cache management
|
| 77 |
# to save network bandwidth.)
|
| 78 |
FileEtag INode MTime Size
|
| 79 |
|
| 80 |
# ContentDigest: This directive enables the generation of Content-MD5
|
| 81 |
# headers as defined in RFC1864 respectively RFC2616.
|
| 82 |
# The Content-MD5 header provides an end-to-end message integrity
|
| 83 |
# check (MIC) of the entity-body. A proxy or client may check this
|
| 84 |
# header for detecting accidental modification of the entity-body
|
| 85 |
# in transit.
|
| 86 |
# Note that this can cause performance problems on your server since
|
| 87 |
# the message digest is computed on every request (the values are
|
| 88 |
# not cached).
|
| 89 |
# Content-MD5 is only sent for documents served by the core, and not
|
| 90 |
# by any module. For example, SSI documents, output from CGI scripts,
|
| 91 |
# and byte range responses do not have this header.
|
| 92 |
ContentDigest Off
|
| 93 |
|
| 94 |
# ErrorLog: The location of the error log file.
|
| 95 |
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
| 96 |
# container, error messages relating to that virtual host will be
|
| 97 |
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
| 98 |
# container, that host's errors will be logged there and not here.
|
| 99 |
ErrorLog /var/log/apache2/error_log
|
| 100 |
|
| 101 |
# LogLevel: Control the number of messages logged to the error_log.
|
| 102 |
# Possible values include: debug, info, notice, warn, error, crit,
|
| 103 |
# alert, emerg.
|
| 104 |
LogLevel warn
|
| 105 |
|
| 106 |
# We configure the "default" to be a very restrictive set of features.
|
| 107 |
<Directory />
|
| 108 |
Options FollowSymLinks
|
| 109 |
AllowOverride None
|
| 110 |
Order deny,allow
|
| 111 |
Deny from all
|
| 112 |
</Directory>
|
| 113 |
|
| 114 |
# DirectoryIndex: sets the file that Apache will serve if a directory
|
| 115 |
# is requested.
|
| 116 |
#
|
| 117 |
# The index.html.var file (a type-map) is used to deliver content-
|
| 118 |
# negotiated documents. The MultiViews Options can be used for the
|
| 119 |
# same purpose, but it is much slower.
|
| 120 |
#
|
| 121 |
# To add files to that list use AddDirectoryIndex in a custom config
|
| 122 |
# file. Do not change this entry unless you know what you are doing.
|
| 123 |
<IfModule dir_module>
|
| 124 |
DirectoryIndex index.html index.html.var
|
| 125 |
</IfModule>
|
| 126 |
|
| 127 |
# The following lines prevent .htaccess and .htpasswd files from being
|
| 128 |
# viewed by Web clients.
|
| 129 |
<FilesMatch "^\.ht">
|
| 130 |
Order allow,deny
|
| 131 |
Deny from all
|
| 132 |
</FilesMatch>
|
| 133 |
|
| 134 |
# vim: ts=4 filetype=apache
|