[Moin-user] root wiki with mod_python

James Bardin jbardin at bu.edu
Fri Jan 11 15:55:59 EST 2008


Hello,

If anyone is interested, according to HelpOnConfiguration/ApacheVoodoo, 
no one has figured out how to get a root mod_python wiki without using 
the moinmodpy wrapper script.

The key seems to be to pass in 'PythonOption Location "/"' so that 
MoinMoin can link correctly.

Here's my config:

####################################
RewriteEngine On

# don't catch any of our static URLs
RewriteCond %{REQUEST_URI}  !^/moin_static160.*
RewriteCond %{REQUEST_URI}  !^/robots.txt$
RewriteCond %{REQUEST_URI}  !^/favicon.ico$
# everything else goes to the wiki
RewriteRule ^/?(.*)$        /var/www/wikifarm/$1

<Directory /var/www/wikifarm>
    SetHandler python-program
    PythonOption Location "/"
    PythonPath "['/var/www/wikifarm'] + sys.path"
    PythonHandler MoinMoin.request.request_modpython::Request.run
</Directory>
####################################


I'd thought I post it here before committing it to MoinMaster


-jim




More information about the Moin-user mailing list