]> git.pld-linux.org Git - packages/apache.git/blob - apache-manual.conf
Release 2 (by relup.sh)
[packages/apache.git] / apache-manual.conf
1 # Provide access to the documentation on your server as
2 #  http://yourserver.example.com/manual/
3 # The documentation is always available at
4 #  https://httpd.apache.org/docs/2.4/
5 #
6 # Required modules: mod_alias, mod_setenvif, mod_negotiation
7 #                   mod_setenvif, mod_negotiation
8 #
9
10 AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "/home/services/httpd/manual$1"
11
12 <Directory "/home/services/httpd/manual">
13         Options Indexes
14         AllowOverride None
15         Require all granted
16         <IfModule mod_access_compat.c>
17                 Order allow,deny
18                 Allow from all
19         </IfModule>
20
21         <Files *.html>
22                 SetHandler type-map
23         </Files>
24         # .tr is text/troff in mime.types!
25         <Files *.html.tr.utf8>
26                 ForceType text/html
27         </Files>
28
29         AddLanguage da .da
30
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
33
34         LanguagePriority en da de es fr ja ko pt-br ru tr
35         ForceLanguagePriority Prefer Fallback
36 </Directory>
This page took 0.024926 seconds and 3 git commands to generate.