diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2017-04-02 08:05:51 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2017-04-02 08:05:51 +0200 |
commit | 035ab0212eede4c7ab894fa78b14da0fa6056ef4 (patch) | |
tree | 32e7d8c35b830b89bdb708013a67f343c71c5e57 /setup/projects/katrin/files/etc/apache2-kaas-docker/original/extra/httpd-manual.conf | |
parent | 1744778d4ffb5183020a5196c7ea020b18e1436a (diff) | |
download | ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.tar.gz ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.tar.bz2 ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.tar.xz ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.zip |
Support pod variants, i.e. one of the specified pods will be actually configured depending on the inventory/group parameters
Diffstat (limited to 'setup/projects/katrin/files/etc/apache2-kaas-docker/original/extra/httpd-manual.conf')
-rw-r--r-- | setup/projects/katrin/files/etc/apache2-kaas-docker/original/extra/httpd-manual.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/setup/projects/katrin/files/etc/apache2-kaas-docker/original/extra/httpd-manual.conf b/setup/projects/katrin/files/etc/apache2-kaas-docker/original/extra/httpd-manual.conf new file mode 100644 index 0000000..fc12fb9 --- /dev/null +++ b/setup/projects/katrin/files/etc/apache2-kaas-docker/original/extra/httpd-manual.conf @@ -0,0 +1,31 @@ +# +# 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/ +# +# Required modules: mod_alias, mod_setenvif, mod_negotiation +# + +AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru|tr))?(/.*)?$ "/usr/local/apache2/manual$1" + +<Directory "/usr/local/apache2/manual"> + Options Indexes + AllowOverride None + Order allow,deny + Allow from all + + <Files *.html> + SetHandler type-map + </Files> + # .tr is text/troff in mime.types! + <Files *.html.tr.utf8> + ForceType "text/html; charset=utf-8" + </Files> + + SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br|ru|tr)/ prefer-language=$1 + RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru|tr)){2,}(/.*)?$ /manual/$1$2 + + LanguagePriority en de es fr ja ko pt-br ru tr + ForceLanguagePriority Prefer Fallback +</Directory> |