Root Wiki with Apache + mod_python
This is the approach we are using at http://softwarelibre.udc.es, misteriously enough, the reciped available in the HelpOnInstalling/ApacheWithModPython page did not work for us.
<VirtualHost *:80> RewriteEngine On RewriteRule ^/$ /wiki/FrontPage [L,PT] RewriteRule /wiki/(.*)$ /var/www/softwarelibre.udc.es/htdocs/moinmoin/$1 [L] RewriteRule ^/(.*)$ /wiki$1 [L,PT] <LocationMatch "/wiki"> SetHandler python-program PythonPath "['/var/www/softwarelibre.udc.es/moinmoin-1.5.6/'] + sys.path" PythonHandler MoinMoin.request::RequestModPy.run PythonOption Location / </locationMatch> </VirtualHost>
Notes
It is not neccessary to have a wiki directory in your document root.
The [L,PT] flags are important. L causes Apache not to rewrite request URLs again, and PT (passthru) makes Apache start a new internal sub-request, so the request reaches the /wiki location.
The PythonOption Location / tells mod_python not to interpret the location prefix as part of the generated URLs.
See EditingOnMoinMaster and fix it there.