MediaWiki: Difference between revisions

From code/src wiki
Jump to navigationJump to search
(KzmRfK comment4, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=us-viagra-sale.html order viagra online overnight, >:[[, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sa)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
KzmRfK comment4, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=us-viagra-sale.html order viagra online overnight, >:[[, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=buy-viagra-online-overnight-shipping.html viagra no prescription overnight delivery,  ndjvn, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=online-viagra-overnight-delivery.html viagra online pharmacy us,  mmvls, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=generic-viagra-online-free-shipping.html viagra cheap overnight, drog, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=viagra-mastercard.html buy a viagra online usa,  =-))), http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=online-viagra-overnight.html viagra with mastercard, pykxb, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=cheapest-viagra-us-pharmacy.html viagra online mastercards, 5808, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=online-viagra-mastercard.html us viagra sale,  5564, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=buying-viagra-with-overnight-shipping.html viagra cheap overnight, 71344, http://openfst.cs.nyu.edu/twiki/bin/viewfile/Sandbox/WebNotify?rev=1;filename=buy-viagra-massachusetts.html cheap viagra fast delivery,  tyk,
== Secure Login ==
 
mediawiki sends plain-text passwords over the network by defaultUse the following extension to enable SSL for the login page.
 
Extract the [https://www.codesrc.com/files/SecureLoginPage.tar.gz SecureLoginPage.tar.gz] file into the /var/lib/mediawiki/extensions directory, then insert the following into your /etc/mediawiki/LocalSettings.php file:
 
  require_once("$IP/extensions/SecureLoginPage/SecureLoginPage.php");
 
MediaWiki sets the "secure" flag on the session cookies by default ($wgCookieSecure == 1). This prevents the browser from supplying the login cookie unless viewing the page over SSL. The /var/lib/mediawiki/extensions/SecureLoginPage/SecureLoginPage_body.php script must be modified to prevent redirecting non-login wiki pages back to HTTP from HTTPS. Modify the "otherPage" function as follows:
  function otherPage($out) {
    return true;
  }
 
_Note:_ An [[SSL]]-enabled VirtualHost is required in your Apache config.
 
Original code obtained from the code examples of the book [http://www.oreilly.com/catalog/9780596519681MediaWiki] by Daniel J. Barrett.

Latest revision as of 11:32, 12 March 2013

Secure Login

mediawiki sends plain-text passwords over the network by default. Use the following extension to enable SSL for the login page.

Extract the SecureLoginPage.tar.gz file into the /var/lib/mediawiki/extensions directory, then insert the following into your /etc/mediawiki/LocalSettings.php file:

require_once("$IP/extensions/SecureLoginPage/SecureLoginPage.php");

MediaWiki sets the "secure" flag on the session cookies by default ($wgCookieSecure == 1). This prevents the browser from supplying the login cookie unless viewing the page over SSL. The /var/lib/mediawiki/extensions/SecureLoginPage/SecureLoginPage_body.php script must be modified to prevent redirecting non-login wiki pages back to HTTP from HTTPS. Modify the "otherPage" function as follows:

function otherPage($out) {
    return true;
}

_Note:_ An SSL-enabled VirtualHost is required in your Apache config.

Original code obtained from the code examples of the book MediaWiki by Daniel J. Barrett.