File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Provide access to the documentation on your server as
3+ # http://yourserver.example.com/manual/
4+ # The documentation is always available at
5+ # http://httpd.apache.org/docs/2.4/
6+ #
7+ # Required modules: mod_alias, mod_authz_core, mod_authz_host,
8+ # mod_setenvif, mod_negotiation
9+ #
10+
11+ AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "${SRVROOT}/manual$1"
12+
13+ <Directory "${SRVROOT}/manual">
14+ Options Indexes
15+ AllowOverride None
16+ Require all granted
17+
18+ <Files *.html>
19+ SetHandler type-map
20+ </Files>
21+
22+ # .tr is text/troff in mime.types!
23+ RemoveType tr
24+
25+ # Traditionally, used .dk filename extension for da language
26+ AddLanguage da .da
27+
28+ SetEnvIf Request_URI ^/manual/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)/ prefer-language=$1
29+ RedirectMatch 301 ^/manual(?:/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)){2,}(/.*)?$ /manual/$1$2
30+
31+ # Reflect the greatest effort in translation (most content available),
32+ # inferring greater attention to detail (potentially false assumption,
33+ # counting translations presently in-sync would be more helpful.)
34+ # Use caution counting; safest pattern is '*.xml.XX'. Recent .xml source
35+ # document count: 266 214 110 94 82 25 22 18 4 1 1
36+ LanguagePriority en fr ko ja tr es de zh-cn pt-br da ru
37+ ForceLanguagePriority Prefer Fallback
38+ </Directory>
You can’t perform that action at this time.
0 commit comments