summaryrefslogtreecommitdiff
blob: 505540512541a37e94e0f1643d430a43e5e36748 (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
26
27
28
29
# 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.4/
<IfModule negotiation_module>
<IfModule setenvif_module>
<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>
</IfModule>
</IfModule>
</IfDefine>

# vim: ts=4 filetype=apache