Difference between revisions of "MediaWiki"

From Briki
Jump to: navigation, search
(Editing Sidebar)
(Short or v. short URLs (depending on virtual host))
Line 1: Line 1:
 
ebP2rm  <a href="http://tmhmghnbyeog.com/">tmhmghnbyeog</a>, [url=http://vmblkobakjow.com/]vmblkobakjow[/url], [link=http://rpkbhvcplgke.com/]rpkbhvcplgke[/link], http://qpepbpiutiub.com/
 
ebP2rm  <a href="http://tmhmghnbyeog.com/">tmhmghnbyeog</a>, [url=http://vmblkobakjow.com/]vmblkobakjow[/url], [link=http://rpkbhvcplgke.com/]rpkbhvcplgke[/link], http://qpepbpiutiub.com/
  
== Short or v. short URLs (depending on virtual host) ==
+
bots.acclaim.com cheats http://jamesshan94.hot-chica.nl/wwww.jericho.com.html wwww.jericho.comrush.timex.coom http://jamesshan94.hot-chica.nl/www-trollz.com.html www trollz.comhttp www.trollz.com http://jamesshan94.hot-chica.nl/http-www.mp3helpdesk.com.html http www.mp3helpdesk.comlove like http://jamesshan94.hot-chica.nl/mt.-williams-oklahoma.html mt. williams oklahomaplaces like pokemoncrater.com http://jamesshan94.hot-chica.nl/myspace.c0om.html myspace.c0omreedem.globalvipgiftcard.com http://jamesshan94.hot-chica.nl/redeem.vipgift.com.html redeem.vipgift.comtrollz.org http://jamesshan94.hot-chica.nl/trollz-copm.html trollz copmmyspace.c0om http://jamesshan94.hot-chica.nl/www.splitcoaststamper.com.html www.splitcoaststamper.comanswers.com platypus http://jamesshan94.hot-chica.nl/trollz.con.html trollz.conwww.gifthdq.com redeem http://jamesshan94.hot-chica.nl/mellissa-detwille.comr.html mellissa detwille.comr
* Ensure that /etc/apache2/sites-available/default (and .../ssl if appropriate) include /etc/apache2/conf.default/*
 
* Move /etc/apache2/conf.d/mediawiki1.10.conf to /etc/apache2/conf.default/mediawiki1.10.conf
 
* Create /etc/apache/conf.d/mediawiki1.10.conf and add:
 
<pre>
 
Alias /wiki /var/lib/mediawiki1.10
 
 
 
<Directory /var/lib/mediawiki1.10/>
 
    # Allow short URLs
 
    RewriteEngine On
 
    RewriteBase /wiki
 
 
 
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]
 
    RewriteRule ^index.php?title - [L]
 
    RewriteRule ^(.*)\&(.*)$ $1\%26$2
 
    RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]
 
</Directory>
 
</pre>
 
 
 
* Create /etc/apache2/sites-available/mediawiki and add:
 
<pre>
 
<VirtualHost *:80>
 
    ServerName wiki.bretts.org
 
    DocumentRoot /var/lib/mediawiki1.10
 
 
 
    # Allow short URLs
 
    RewriteEngine On
 
 
 
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]
 
    RewriteRule ^index.php?title - [L]
 
    RewriteRule ^(.*)\&(.*)$ $1\%26$2
 
    RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]
 
</VirtualHost>
 
 
 
<VirtualHost *:443>
 
    ServerName wiki.bretts.org
 
    DocumentRoot /var/lib/mediawiki1.10
 
 
 
    # Allow short URLs
 
    RewriteEngine On
 
 
 
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]
 
    RewriteRule ^index.php?title - [L]
 
    RewriteRule ^(.*)\&(.*)$ $1\%26$2
 
    RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]
 
</VirtualHost>
 
</pre>
 
 
 
* Edit /etc/mediawiki1.10/mediawiki.conf and add:
 
<pre>
 
if (strpos($_SERVER['SERVER_NAME'], 'wiki') === false) {
 
    $wgScriptPath      = "/wiki";
 
    $wgArticlePath      = "/wiki/$1";
 
} else {
 
    $wgScriptPath      = "";
 
    $wgArticlePath      = "/$1";
 
}
 
 
 
## Disable caching, so that we can use alternate URLs for different virtual hosts
 
$wgEnableParserCache = false;
 
</pre>
 
 
 
* Run '''sudo a2ensite mediawiki'''
 
  
 
== Setting site homepage ==
 
== Setting site homepage ==

Revision as of 20:02, 7 May 2009

ebP2rm <a href="http://tmhmghnbyeog.com/">tmhmghnbyeog</a>, [url=http://vmblkobakjow.com/]vmblkobakjow[/url], [link=http://rpkbhvcplgke.com/]rpkbhvcplgke[/link], http://qpepbpiutiub.com/

bots.acclaim.com cheats http://jamesshan94.hot-chica.nl/wwww.jericho.com.html wwww.jericho.comrush.timex.coom http://jamesshan94.hot-chica.nl/www-trollz.com.html www trollz.comhttp www.trollz.com http://jamesshan94.hot-chica.nl/http-www.mp3helpdesk.com.html http www.mp3helpdesk.comlove like http://jamesshan94.hot-chica.nl/mt.-williams-oklahoma.html mt. williams oklahomaplaces like pokemoncrater.com http://jamesshan94.hot-chica.nl/myspace.c0om.html myspace.c0omreedem.globalvipgiftcard.com http://jamesshan94.hot-chica.nl/redeem.vipgift.com.html redeem.vipgift.comtrollz.org http://jamesshan94.hot-chica.nl/trollz-copm.html trollz copmmyspace.c0om http://jamesshan94.hot-chica.nl/www.splitcoaststamper.com.html www.splitcoaststamper.comanswers.com platypus http://jamesshan94.hot-chica.nl/trollz.con.html trollz.conwww.gifthdq.com redeem http://jamesshan94.hot-chica.nl/mellissa-detwille.comr.html mellissa detwille.comr

Setting site homepage

Edit /etc/apache2/sites-available/default and add:

RedirectMatch permanent ^/$ /wiki/Main_Page