summaryrefslogtreecommitdiff
blob: 5388d96b10e1188629c36a0f882cf1e5419ac9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Provide access to the documentation on your server as
#  http://yourserver.example.com/manual/
# The documentation is always available at
#  http://httpd.apache.org/docs/2.2/
<IfDefine MANUAL>
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br))?(/.*)?$ "/usr/share/doc/apache-VERSION/manual$1"

<Directory "/usr/share/doc/apache-VERSION/manual">
	Options Indexes
	AllowOverride None
	Require all granted

	<Files *.html>
		SetHandler type-map
	</Files>

	SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br)/ prefer-language=$1
	RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br)){2,}(/.*)?$ /manual/$1$2

	LanguagePriority en de es fr ja ko pt-br
	ForceLanguagePriority Prefer Fallback
</Directory>
</IfDefine>

# vim: ts=4 filetype=apache