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


See EditingOnMoinMaster and fix it there. :)

MoinMoin: AdrianPerez/ModPythonRootWiki (last edited 2007-10-29 19:10:13 by localhost)