~ubuntu-branches/ubuntu/breezy/apache2/breezy-security

« back to all changes in this revision

Viewing changes to debian/config/apache2.conf

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-10-13 19:46:10 UTC
  • Revision ID: james.westby@ubuntu.com-20041013194610-ccvqcz8vflh5zqrm
Tags: 2.0.50-12ubuntu4
Security Release. Patch from upstream for the following:
CAN-2004-0885SSLCypherSuite can be bypassed during renegotiation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Based upon the NCSA server configuration files originally by Rob McCool.
 
2
# Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net>
 
3
# and also by Thom May <thom@debian.org>.
 
4
 
 
5
# ServerRoot: The top of the directory tree under which the server's
 
6
# configuration, error, and log files are kept.
 
7
#
 
8
# NOTE!  If you intend to place this on an NFS (or otherwise network)
 
9
# mounted filesystem then please read the LockFile documentation
 
10
# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
 
11
# you will save yourself a lot of trouble.
 
12
 
 
13
ServerRoot "/etc/apache2"
 
14
 
 
15
# The LockFile directive sets the path to the lockfile used when Apache
 
16
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
 
17
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
 
18
# its default value. The main reason for changing it is if the logs
 
19
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
 
20
# DISK. The PID of the main server process is automatically appended to
 
21
# the filename. 
 
22
 
 
23
LockFile /var/lock/apache2/accept.lock
 
24
 
 
25
# PidFile: The file in which the server should record its process
 
26
# identification number when it starts.
 
27
 
 
28
PidFile /var/run/apache2.pid
 
29
 
 
30
# Timeout: The number of seconds before receives and sends time out.
 
31
 
 
32
Timeout 300
 
33
 
 
34
# KeepAlive: Whether or not to allow persistent connections (more than
 
35
# one request per connection). Set to "Off" to deactivate.
 
36
 
 
37
KeepAlive On
 
38
 
 
39
# MaxKeepAliveRequests: The maximum number of requests to allow
 
40
# during a persistent connection. Set to 0 to allow an unlimited amount.
 
41
# We recommend you leave this number high, for maximum performance.
 
42
 
 
43
MaxKeepAliveRequests 100
 
44
 
 
45
# KeepAliveTimeout: Number of seconds to wait for the next request from the
 
46
# same client on the same connection.
 
47
 
 
48
KeepAliveTimeout 15
 
49
 
 
50
##
 
51
## Server-Pool Size Regulation (MPM specific)
 
52
## 
 
53
 
 
54
# prefork MPM
 
55
# StartServers ......... number of server processes to start
 
56
# MinSpareServers ...... minimum number of server processes which are kept spare
 
57
# MaxSpareServers ...... maximum number of server processes which are kept spare
 
58
# MaxClients ........... maximum number of server processes allowed to start
 
59
# MaxRequestsPerChild .. maximum number of requests a server process serves
 
60
<IfModule prefork.c>
 
61
StartServers         5
 
62
MinSpareServers      5
 
63
MaxSpareServers     10
 
64
MaxClients          20
 
65
MaxRequestsPerChild  0
 
66
</IfModule>
 
67
 
 
68
# pthread MPM
 
69
# StartServers ......... initial  number of server processes to start
 
70
# MaxClients ........... maximum  number of server processes allowed to start
 
71
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
 
72
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
 
73
# ThreadsPerChild ...... constant number of worker threads in each server process
 
74
# MaxRequestsPerChild .. maximum  number of requests a server process serves
 
75
<IfModule worker.c>
 
76
StartServers         2
 
77
MaxClients         150 
 
78
MinSpareThreads     25
 
79
MaxSpareThreads     75
 
80
ThreadsPerChild     25
 
81
MaxRequestsPerChild  0
 
82
</IfModule>
 
83
 
 
84
# perchild MPM
 
85
# NumServers ........... constant number of server processes
 
86
# StartThreads ......... initial  number of worker threads in each server process
 
87
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
 
88
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
 
89
# MaxThreadsPerChild ... maximum  number of worker threads in each server process
 
90
# MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
 
91
<IfModule perchild.c>
 
92
NumServers           5
 
93
StartThreads         5
 
94
MinSpareThreads      5
 
95
MaxSpareThreads     10
 
96
MaxThreadsPerChild  20
 
97
MaxRequestsPerChild  0
 
98
AcceptMutex fcntl
 
99
</IfModule>
 
100
 
 
101
User www-data
 
102
Group www-data
 
103
 
 
104
# The following directives define some format nicknames for use with
 
105
# a CustomLog directive (see below).
 
106
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 
107
LogFormat "%h %l %u %t \"%r\" %>s %b" common
 
108
LogFormat "%{Referer}i -> %U" referer
 
109
LogFormat "%{User-agent}i" agent
 
110
 
 
111
 
 
112
# Global error log.
 
113
ErrorLog /var/log/apache2/error.log
 
114
 
 
115
# Include module configuration:
 
116
Include /etc/apache2/mods-enabled/*.load
 
117
Include /etc/apache2/mods-enabled/*.conf
 
118
 
 
119
# Include all the user configurations:
 
120
Include /etc/apache2/httpd.conf
 
121
 
 
122
# Include ports listing
 
123
Include /etc/apache2/ports.conf
 
124
 
 
125
# Include generic snippets of statements
 
126
Include /etc/apache2/conf.d/[^.#]*
 
127
 
 
128
#Let's have some Icons, shall we?
 
129
Alias /icons/ "/usr/share/apache2/icons/"
 
130
<Directory "/usr/share/apache2/icons">
 
131
    Options Indexes MultiViews
 
132
    AllowOverride None
 
133
    Order allow,deny
 
134
    Allow from all
 
135
</Directory>
 
136
 
 
137
# Set up the default error docs.
 
138
#
 
139
# Customizable error responses come in three flavors:
 
140
# 1) plain text 2) local redirects 3) external redirects
 
141
#
 
142
# Some examples:
 
143
#ErrorDocument 500 "The server made a boo boo."
 
144
#ErrorDocument 404 /missing.html
 
145
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
 
146
#ErrorDocument 402 http://www.example.com/subscription_info.html
 
147
#
 
148
 
 
149
#
 
150
# Putting this all together, we can Internationalize error responses.
 
151
#
 
152
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
 
153
# our collection of by-error message multi-language collections.  We use 
 
154
# includes to substitute the appropriate text.
 
155
#
 
156
# You can modify the messages' appearance without changing any of the
 
157
# default HTTP_<error>.html.var files by adding the line;
 
158
#
 
159
#   Alias /error/include/ "/your/include/path/"
 
160
#
 
161
# which allows you to create your own set of files by starting with the
 
162
# /usr/local/apache2/error/include/ files and
 
163
# copying them to /your/include/path/, even on a per-VirtualHost basis.
 
164
#
 
165
 
 
166
<IfModule mod_negotiation.c>
 
167
<IfModule mod_include.c>
 
168
    Alias /error/ "/usr/share/apache2/error/"
 
169
 
 
170
    <Directory "/usr/share/apache2/error">
 
171
        AllowOverride None
 
172
        Options IncludesNoExec
 
173
        AddOutputFilter Includes html
 
174
        AddHandler type-map var
 
175
        Order allow,deny
 
176
        Allow from all
 
177
        LanguagePriority en es de fr
 
178
        ForceLanguagePriority Prefer Fallback
 
179
    </Directory>
 
180
 
 
181
    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
 
182
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
 
183
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
 
184
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
 
185
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
 
186
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
 
187
    ErrorDocument 410 /error/HTTP_GONE.html.var
 
188
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
 
189
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
 
190
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
 
191
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
 
192
    ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 
193
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
 
194
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
 
195
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
 
196
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 
197
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
 
198
 
 
199
</IfModule>
 
200
</IfModule>
 
201
 
 
202
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
 
203
 
 
204
# UserDir is now a module
 
205
#UserDir public_html
 
206
#UserDir disabled root
 
207
 
 
208
#<Directory /home/*/public_html>
 
209
#       AllowOverride FileInfo AuthConfig Limit
 
210
#       Options Indexes SymLinksIfOwnerMatch IncludesNoExec
 
211
#</Directory>
 
212
 
 
213
AccessFileName .htaccess
 
214
 
 
215
<Files ~ "^\.ht">
 
216
    Order allow,deny
 
217
    Deny from all
 
218
</Files>
 
219
 
 
220
UseCanonicalName Off
 
221
 
 
222
TypesConfig /etc/mime.types
 
223
DefaultType text/plain
 
224
 
 
225
HostnameLookups Off
 
226
 
 
227
IndexOptions FancyIndexing VersionSort
 
228
 
 
229
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 
230
 
 
231
AddIconByType (TXT,/icons/text.gif) text/*
 
232
AddIconByType (IMG,/icons/image2.gif) image/*
 
233
AddIconByType (SND,/icons/sound2.gif) audio/*
 
234
AddIconByType (VID,/icons/movie.gif) video/*
 
235
 
 
236
# This really should be .jpg.
 
237
 
 
238
AddIcon /icons/binary.gif .bin .exe
 
239
AddIcon /icons/binhex.gif .hqx
 
240
AddIcon /icons/tar.gif .tar
 
241
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
 
242
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
 
243
AddIcon /icons/a.gif .ps .ai .eps
 
244
AddIcon /icons/layout.gif .html .shtml .htm .pdf
 
245
AddIcon /icons/text.gif .txt
 
246
AddIcon /icons/c.gif .c
 
247
AddIcon /icons/p.gif .pl .py
 
248
AddIcon /icons/f.gif .for
 
249
AddIcon /icons/dvi.gif .dvi
 
250
AddIcon /icons/uuencoded.gif .uu
 
251
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
 
252
AddIcon /icons/tex.gif .tex
 
253
AddIcon /icons/bomb.gif core
 
254
 
 
255
AddIcon /icons/back.gif ..
 
256
AddIcon /icons/hand.right.gif README
 
257
AddIcon /icons/folder.gif ^^DIRECTORY^^
 
258
AddIcon /icons/blank.gif ^^BLANKICON^^
 
259
 
 
260
 
 
261
# This is from Matty J's patch. Anyone want to make the icons?
 
262
#AddIcon /icons/dirsymlink.jpg ^^SYMDIR^^
 
263
#AddIcon /icons/symlink.jpg ^^SYMLINK^^
 
264
 
 
265
DefaultIcon /icons/unknown.gif
 
266
 
 
267
ReadmeName README.html
 
268
HeaderName HEADER.html
 
269
 
 
270
IndexIgnore .??* *~ *# HEADER* RCS CVS *,t
 
271
 
 
272
AddEncoding x-compress Z
 
273
AddEncoding x-gzip gz tgz
 
274
 
 
275
AddLanguage da .dk
 
276
AddLanguage nl .nl
 
277
AddLanguage en .en
 
278
AddLanguage et .et
 
279
AddLanguage fr .fr
 
280
AddLanguage de .de
 
281
AddLanguage el .el
 
282
AddLanguage it .it
 
283
AddLanguage ja .ja
 
284
AddLanguage pl .po
 
285
AddLanguage ko .ko
 
286
AddLanguage pt .pt
 
287
AddLanguage no .no
 
288
AddLanguage pt-br .pt-br
 
289
AddLanguage ltz .ltz
 
290
AddLanguage ca .ca
 
291
AddLanguage es .es
 
292
AddLanguage sv .se
 
293
AddLanguage cz .cz
 
294
AddLanguage ru .ru
 
295
AddLanguage tw .tw
 
296
AddLanguage zh-tw .tw
 
297
 
 
298
LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
 
299
 
 
300
 
 
301
#AddDefaultCharset      ISO-8859-1
 
302
 
 
303
AddCharset ISO-8859-1  .iso8859-1  .latin1
 
304
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
 
305
AddCharset ISO-8859-3  .iso8859-3  .latin3
 
306
AddCharset ISO-8859-4  .iso8859-4  .latin4
 
307
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
 
308
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
 
309
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
 
310
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb 
 
311
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
 
312
AddCharset ISO-2022-JP .iso2022-jp .jis
 
313
AddCharset ISO-2022-KR .iso2022-kr .kis
 
314
AddCharset ISO-2022-CN .iso2022-cn .cis
 
315
AddCharset Big5        .Big5       .big5
 
316
# For russian, more than one charset is used (depends on client, mostly):
 
317
AddCharset WINDOWS-1251 .cp-1251   .win-1251
 
318
AddCharset CP866       .cp866
 
319
AddCharset KOI8-r      .koi8-r .koi8-ru
 
320
AddCharset KOI8-ru     .koi8-uk .ua
 
321
AddCharset ISO-10646-UCS-2 .ucs2
 
322
AddCharset ISO-10646-UCS-4 .ucs4
 
323
AddCharset UTF-8       .utf8
 
324
 
 
325
AddCharset GB2312      .gb2312 .gb 
 
326
AddCharset utf-7       .utf7
 
327
AddCharset utf-8       .utf8
 
328
AddCharset big5        .big5 .b5
 
329
AddCharset EUC-TW      .euc-tw  
 
330
AddCharset EUC-JP      .euc-jp
 
331
AddCharset EUC-KR      .euc-kr
 
332
AddCharset shift_jis   .sjis
 
333
 
 
334
#AddType application/x-httpd-php .php
 
335
#AddType application/x-httpd-php-source .phps
 
336
 
 
337
AddType application/x-tar .tgz
 
338
 
 
339
# To use CGI scripts outside /cgi-bin/:
 
340
#
 
341
#AddHandler cgi-script .cgi
 
342
 
 
343
# To use server-parsed HTML files
 
344
#
 
345
<FilesMatch "\.shtml(\..+)?$">
 
346
    SetOutputFilter INCLUDES
 
347
</FilesMatch>
 
348
 
 
349
# If you wish to use server-parsed imagemap files, use
 
350
#
 
351
#AddHandler imap-file map
 
352
 
 
353
BrowserMatch "Mozilla/2" nokeepalive
 
354
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
 
355
BrowserMatch "RealPlayer 4\.0" force-response-1.0
 
356
BrowserMatch "Java/1\.0" force-response-1.0
 
357
BrowserMatch "JDK/1\.0" force-response-1.0
 
358
 
 
359
#
 
360
# The following directive disables redirects on non-GET requests for
 
361
# a directory that does not include the trailing slash.  This fixes a 
 
362
# problem with Microsoft WebFolders which does not appropriately handle 
 
363
# redirects for folders with DAV methods.
 
364
#
 
365
 
 
366
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
 
367
BrowserMatch "^WebDrive" redirect-carefully
 
368
BrowserMatch "^gnome-vfs" redirect-carefully 
 
369
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
 
370
 
 
371
# Allow server status reports, with the URL of http://servername/server-status
 
372
# Change the ".your_domain.com" to match your domain to enable.
 
373
#
 
374
#<Location /server-status>
 
375
#    SetHandler server-status
 
376
#    Order deny,allow
 
377
#    Deny from all
 
378
#    Allow from .your_domain.com
 
379
#</Location>
 
380
 
 
381
# Allow remote server configuration reports, with the URL of
 
382
#  http://servername/server-info (requires that mod_info.c be loaded).
 
383
# Change the ".your_domain.com" to match your domain to enable.
 
384
#
 
385
#<Location /server-info>
 
386
#    SetHandler server-info
 
387
#    Order deny,allow
 
388
#    Deny from all
 
389
#    Allow from .your_domain.com
 
390
#</Location>
 
391
 
 
392
# Include the virtual host configurations:
 
393
Include /etc/apache2/sites-enabled/[^.#]*