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