Other MoinMoin help topics

Subtopics

Contents

Lost password for a user

If you have mail configured for your MoinMoin wiki (see HelpOnConfiguration) then users can have their password sent to the email address given in their user preferences (just click on Anmelden and read that page).

If mail is not configured, then this functionality is not offered.

Adding a favicon to your wiki setup

You may want to add a custom icon to your wiki site, commonly known as favicon.ico. Favicons usually appear beside bookmarks and with tabbed browsing. To change the default favicon for your wiki, add this to your wikiconfig.py:

html_head = '''
<link rel="shortcut icon" href="/moin_static160/favicon.ico">
<!-- ... more header stuff ... -->
'''

The image size must be 16x16.

Apache tricks

Serving the wiki from a domain root

httpd.conf modification for MoinMoin installation at "/":

# global section:
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
# virtualhost section:
RewriteEngine on
RewriteRule ^/moin_static160/ -  [last]
RewriteRule ^/robots.txt  -      [last]
RewriteRule ^/favicon.ico -      [last]
RewriteRule ^/?(.*) /file/path/to/moin.cgi/$1  [last,type=application/x-httpd-cgi]

This way you can use short and clean URLs like http://LinuxWiki.de/FrontPage.

Note:

Redirect /mywiki/MyWiki to the user's language FrontPage

Perhaps you want to use MyWiki in your wiki to refer to your wiki. If a user clicks this link they should be transferred to the FrontPage, that is to the FrontPage of her/his language.

Add this to your httpd.conf before the ScriptAlias:

RedirectPermanent /mywiki/MyWiki    http://www.domain.org/mywiki?action=show

Serving the wiki from wiki.domain.com and home page from www.domain.com

Here is a configuration for virtual hosting with special permissions on Gentoo Linux. The following configuration is for Apache2 config files. Just put it all in httpd.conf for Apache 1.

Add this to /etc/apache2/conf/vhosts/vhosts.conf

NameVirtualHost *
<VirtualHost *>
   ServerName www.domain.org
   ServerAlias domain.org
   DocumentRoot /var/www/domain.org/htdocs
</VirtualHost>
 
<VirtualHost *>
   ServerName wiki.domain.org
   Alias /moin_static160/ "/usr/share/moin/htdocs/"
   Alias /favicon.ico "/var/www/htdocs/favicon.ico"
   ScriptAlias / "/usr/share/moin/mywiki/moin.cgi/"
</VirtualHost>

Add this to /etc/apache2/conf/commonapache2.conf

<Directory /usr/share/moin/htdocs/>
   Order deny,allow
   Allow from all
</Directory>

<Directory /usr/share/moin/domain.org/>
   Order deny,allow
   Allow from all
</Directory>

Special features for wiki farms and intranets

The following shows how certain features can help you to optimize your configuration when you run several wikis on one host, or when you use MoinMoin in intranet environments.

Centralized settings

Remapping URLs

The configuration variable "url_mappings" can be used to remap URLs, for example to change certain URL prefixes to totally different ones. This is especially useful in intranets, when whole trees of documents hosted outside of the wiki move around. It does not apply to most intra-wiki links as those are relative and are not remapped.

"url_mappings" is a lookup table in the form of a dict, the key is the prefix to be replaced, the value is the replacement.

You could also use "url_mappings" to include a dereferer-script for external links, like this:

url_mappings = {
    'http://my-wiki/': 'http://my-wiki/',
    'http://': '/cgi-bin/derefer.cgi?url=http://'
  }

The reason you might want to use this is to avoid google spamming in your wiki (although this is unlikely to be noticed and would only counter the link spamming if done large-scale) or to keep your wikipages secret. Note that your own wiki needs to be included explicitly because URLs that might be generated automatically (for example for email notifications) would otherwise be remapped to your referrer script as well.

Please notice: If you want to redirect a single page to another, just type #REDIRECT and the name of the page to direct to in the first line of your page. See HelpOnProcessingInstructions.

TODO

<!> TODO: explain the following things in detail, and add more detail to the above sections

Needing more explanation:

Admin stuff:

Compatibility: