Navigation
|
Here some random experience in setting up fpga4u.epfl.ch wiki with MediaWiki .Secure login formWe wanted to have the login form of MediaWiki to be secured through https. We have to 2 VirtualHost directives. One for the SSL enabled access and the other for normal. We wrote these apache mod_rewrite:For the VirtualHost on port 80: #Rewrite login url to use httpsRewriteEngine On RewriteCond %{REQUEST_URI} ^/index.php$ RewriteCond %{QUERY_STRING} ^title=Special:Userlogin RewriteCond %{REQUEST_METHOD} ^GET$ RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R] For the VirtualHost on port 80: #Rewrite non login url to use normal http RewriteEngine On RewriteCond %{QUERY_STRING} ^(?!title=Special:Userlogin) RewriteRule ^(.*)$ http://%{SERVER_NAME}$1 [R] Hope it helps. |