forked from pool/apache2
This commit is contained in:
22
apache2-manual.conf
Normal file
22
apache2-manual.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# This configuration file belongs to the apache2-doc package.
|
||||
#
|
||||
# The alias provides the manual, even if you choose to move your DocumentRoot.
|
||||
# this out if you do not care for the documentation.
|
||||
#
|
||||
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/share/apache2/manual$1"
|
||||
|
||||
<Directory "/usr/share/apache2/manual">
|
||||
Options Indexes
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
|
||||
<Files *.html>
|
||||
SetHandler type-map
|
||||
</Files>
|
||||
|
||||
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
|
||||
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
|
||||
</Directory>
|
||||
|
Reference in New Issue
Block a user