summaryrefslogtreecommitdiff
blob: 1aaeceb1abe649bff53ea37e963d0b182a7b0373 (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
30
# 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/
<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
	Order allow,deny
	Allow from all

	<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