]> git.pld-linux.org Git - packages/apache.git/blame - apache-manual.conf
- bump nghttp2 requirement for complete support
[packages/apache.git] / apache-manual.conf
CommitLineData
86dece47
ER
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.2/
6#
7# Required modules: mod_alias, mod_setenvif, mod_negotiation
061ad5b2 8# mod_setenvif, mod_negotiation
86dece47
ER
9#
10
061ad5b2 11AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "/home/services/httpd/manual$1"
86dece47
ER
12
13<Directory "/home/services/httpd/manual">
408714fc
ER
14 Options Indexes
15 AllowOverride None
40ca719a 16 Require all granted
e92e5081
JR
17 <IfModule mod_access_compat.c>
18 Order allow,deny
19 Allow from all
20 </IfModule>
86dece47 21
408714fc
ER
22 <Files *.html>
23 SetHandler type-map
24 </Files>
061ad5b2
AM
25 # .tr is text/troff in mime.types!
26 <Files *.html.tr.utf8>
27 ForceType text/html
28 </Files>
29
30 AddLanguage da .da
86dece47 31
061ad5b2
AM
32 SetEnvIf Request_URI ^/manual/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)/ prefer-language=$
33 RedirectMatch 301 ^/manual(?:/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)){2,}(/.*)?$ /manual/$1$2
86dece47 34
061ad5b2 35 LanguagePriority en da de es fr ja ko pt-br ru tr
408714fc 36 ForceLanguagePriority Prefer Fallback
86dece47 37</Directory>
This page took 0.044372 seconds and 4 git commands to generate.