aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/wikis/templates/wiki_vhost.conf
blob: d4e5e0a25cb07c57e55f84d1fe3bdec6419698cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Directory <%= wikis_root %>>
  Options +FollowSymLinks
</Directory>

RewriteEngine On
RewriteRule ^/?$ /en/ [R]

<%- for lang in wiki_languages -%>

<Directory <%= wikis_root %>/<%= lang %>/images>
  SetHandler default-handler
</Directory>

Alias /<%= lang %> <%= wikis_root %>/<%= lang %>/index.php
Alias /mw-<%= lang %> <%= wikis_root %>/<%= lang %>

<%- end -%>