diff options
Diffstat (limited to '2.4/conf/modules.d/00_apache_manual.conf')
-rw-r--r-- | 2.4/conf/modules.d/00_apache_manual.conf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2.4/conf/modules.d/00_apache_manual.conf b/2.4/conf/modules.d/00_apache_manual.conf new file mode 100644 index 0000000..5388d96 --- /dev/null +++ b/2.4/conf/modules.d/00_apache_manual.conf @@ -0,0 +1,25 @@ +# 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.2/ +<IfDefine MANUAL> +AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br))?(/.*)?$ "/usr/share/doc/apache-VERSION/manual$1" + +<Directory "/usr/share/doc/apache-VERSION/manual"> + Options Indexes + AllowOverride None + Require all granted + + <Files *.html> + SetHandler type-map + </Files> + + SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br)/ prefer-language=$1 + RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br)){2,}(/.*)?$ /manual/$1$2 + + LanguagePriority en de es fr ja ko pt-br + ForceLanguagePriority Prefer Fallback +</Directory> +</IfDefine> + +# vim: ts=4 filetype=apache |