~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to docs/conf/extra/httpd-multilang-errordoc.conf.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# The configuration below implements multi-language error documents through
 
3
# content-negotiation.
 
4
#
 
5
# Required modules: mod_alias, mod_include, mod_negotiation
 
6
#
 
7
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
 
8
# our collection of by-error message multi-language collections.  We use 
 
9
# includes to substitute the appropriate text.
 
10
#
 
11
# You can modify the messages' appearance without changing any of the
 
12
# default HTTP_<error>.html.var files by adding the line:
 
13
#
 
14
#   Alias /error/include/ "/your/include/path/"
 
15
#
 
16
# which allows you to create your own set of files by starting with the
 
17
# @exp_errordir@/include/ files and copying them to /your/include/path/, 
 
18
# even on a per-VirtualHost basis.  The default include files will display
 
19
# your Apache version number and your ServerAdmin email address regardless
 
20
# of the setting of ServerSignature.
 
21
 
 
22
Alias /error/ "@exp_errordir@/"
 
23
 
 
24
<Directory "@exp_errordir@">
 
25
    AllowOverride None
 
26
    Options IncludesNoExec
 
27
    AddOutputFilter Includes html
 
28
    AddHandler type-map var
 
29
    Order allow,deny
 
30
    Allow from all
 
31
    LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
 
32
    ForceLanguagePriority Prefer Fallback
 
33
</Directory>
 
34
 
 
35
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
 
36
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
 
37
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
 
38
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
 
39
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
 
40
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
 
41
ErrorDocument 410 /error/HTTP_GONE.html.var
 
42
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
 
43
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
 
44
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
 
45
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
 
46
ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
 
47
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
 
48
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
 
49
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
 
50
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 
51
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
 
52