summaryrefslogtreecommitdiffstats
path: root/docs/conf/extra/httpd-manual.conf.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 02:04:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 02:04:06 +0000
commit5dff2d61cc1c27747ee398e04d8e02843aabb1f8 (patch)
treea67c336b406c8227bac912beb74a1ad3cdc55100 /docs/conf/extra/httpd-manual.conf.in
parentInitial commit. (diff)
downloadapache2-5dff2d61cc1c27747ee398e04d8e02843aabb1f8.tar.xz
apache2-5dff2d61cc1c27747ee398e04d8e02843aabb1f8.zip
Adding upstream version 2.4.38.upstream/2.4.38upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/conf/extra/httpd-manual.conf.in')
-rw-r--r--docs/conf/extra/httpd-manual.conf.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/conf/extra/httpd-manual.conf.in b/docs/conf/extra/httpd-manual.conf.in
new file mode 100644
index 0000000..e8222a9
--- /dev/null
+++ b/docs/conf/extra/httpd-manual.conf.in
@@ -0,0 +1,38 @@
+#
+# 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.4/
+#
+# Required modules: mod_alias, mod_authz_core, mod_authz_host,
+# mod_setenvif, mod_negotiation
+#
+
+AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "@exp_manualdir@$1"
+
+<Directory "@exp_manualdir@">
+ Options Indexes
+ AllowOverride None
+ Require all granted
+
+ <Files *.html>
+ SetHandler type-map
+ </Files>
+
+ # .tr is text/troff in mime.types!
+ RemoveType tr
+
+ # Traditionally, used .dk filename extension for da language
+ AddLanguage da .da
+
+ SetEnvIf Request_URI ^/manual/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)/ prefer-language=$1
+ RedirectMatch 301 ^/manual(?:/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)){2,}(/.*)?$ /manual/$1$2
+
+ # Reflect the greatest effort in translation (most content available),
+ # inferring greater attention to detail (potentially false assumption,
+ # counting translations presently in-sync would be more helpful.)
+ # Use caution counting; safest pattern is '*.xml.XX'. Recent .xml source
+ # document count: 266 214 110 94 82 25 22 18 4 1 1
+ LanguagePriority en fr ko ja tr es de zh-cn pt-br da ru
+ ForceLanguagePriority Prefer Fallback
+</Directory>