aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki/templates/wiki_vhost.conf
blob: 3fe038c34214b304d95893230256abd1d79f6729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# heavily used by the wiki farm stuff
<Directory <%= root %>>
Options +FollowSymLinks
</Directory>

<Directory <%= root %>/images>
   SetHandler default-handler
</Directory>

AliasMatch /.*/skins/(.*)$ /usr/share/mediawiki/skins/$1

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/.*/index.php$
RewriteCond %{QUERY_STRING} ^title=Special:UserLogin
RewriteCond %{HTTPS} ^off$
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R]