This requires the Apache module "mod_rewrite" (which should be standard)
An Apache root wiki is easy, but it has limitations. Since moin needs to access certain static files (images, css, etc.), it intercepts a part of the possible WikiName namespace.
- Install moin as normal.
Add the following lines to your VirtualHost config:
RewriteEngine On RewriteLogLevel 0 # Point to moin shared static files - DEPENDS ON MOIN VERSION! RewriteRule ^/moin_static160/(.*)$ /prefix/share/moin/htdocs/$1 [last] # Map everything else to moin cgi script RewriteRule ^(.*)$ /path/to/moin.cgi$1 [type=application/x-httpd-cgi] # Setting for FastCGI ##RewriteRule ^(.*)$ /path/to/moin.fcg$1 [type=application/x-httpd-fcgi]
The RewriteRule for FastCGI here does not work for me:
[Wed Jan 05 01:43:41 2005] [error] [client 10.0.0.1] File does not exist: /home/apache/moin/wiki/share/moin/pw/moin.fcg/RecentChanges, referer: http://moin.dahoam/StartSeite duplo:/home/danielt# ls /home/apache/moin/wiki/share/moin/pw/moin.fcg -rwxr-xr-x 1 root www 1088 Jan 4 23:35 /home/apache/moin/wiki/share/moin/pw/moin.fcg*
As a workaround I use this:
RewriteRule ^/?(.*) /_Wikiscript_/moin.fcg/$1 RewriteRule ^/_Wikiscript_/(.*) /home/apache/moin/wiki/share/moin/pw/$1 [last]