aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki/templates/wiki_vhost.conf
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-07-03 22:27:14 +0000
committerMichael Scherer <misc@mageia.org>2011-07-03 22:27:14 +0000
commitfc072d9ab165af42c0f303bf9e238bc32340609f (patch)
treec7c9906e6418a39ada71daf545166852980dff81 /modules/mediawiki/templates/wiki_vhost.conf
parent267bd3996dc2fbd3373d980db0bfe1d144f7823f (diff)
downloadpuppet-fc072d9ab165af42c0f303bf9e238bc32340609f.tar
puppet-fc072d9ab165af42c0f303bf9e238bc32340609f.tar.gz
puppet-fc072d9ab165af42c0f303bf9e238bc32340609f.tar.bz2
puppet-fc072d9ab165af42c0f303bf9e238bc32340609f.tar.xz
puppet-fc072d9ab165af42c0f303bf9e238bc32340609f.zip
force login to the wiki to be on https
Diffstat (limited to 'modules/mediawiki/templates/wiki_vhost.conf')
-rw-r--r--modules/mediawiki/templates/wiki_vhost.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mediawiki/templates/wiki_vhost.conf b/modules/mediawiki/templates/wiki_vhost.conf
index 720667c6..1464856f 100644
--- a/modules/mediawiki/templates/wiki_vhost.conf
+++ b/modules/mediawiki/templates/wiki_vhost.conf
@@ -5,3 +5,9 @@ Options +FollowSymLinks
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]