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