]> git.pld-linux.org Git - packages/apache.git/blame - apache-multilang-errordoc.conf
update doc links to 2.4 version
[packages/apache.git] / apache-multilang-errordoc.conf
CommitLineData
86dece47
ER
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# /home/services/httpd/error/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
22Alias /error/ "/home/services/httpd/error/"
23
24<Directory "/home/services/httpd/error">
408714fc
ER
25 AllowOverride None
26 Options IncludesNoExec
27 AddOutputFilter Includes html
28 AddHandler type-map var
40ca719a 29 Require all granted
e92e5081
JR
30 <IfModule mod_access_compat.c>
31 Order allow,deny
32 Allow from all
33 </IfModule>
408714fc
ER
34 LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
35 ForceLanguagePriority Prefer Fallback
86dece47
ER
36</Directory>
37
38ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
39ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
40ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
41ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
42ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
43ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
44ErrorDocument 410 /error/HTTP_GONE.html.var
45ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
46ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
47ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
48ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
49ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
50ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
51ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
52ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
53ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
54ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
This page took 0.052664 seconds and 4 git commands to generate.