[Moin-user] WSGI config without admin interaction
Thomas Waldmann
tw-public at gmx.de
Sun Jan 11 19:06:18 EST 2009
> sys.path.insert(0, '/home/flindner/moinmoin/test_instance')
> sys.path.insert(0, '/home/flindner/moinmoin/lib/python2.5/site-
> packages')
You should insert the wiki config directory LAST, so it is at the very
beginning of sys.path.
> wikiconfig.py in test_instance needs to have absolute paths for the
> data and underlay dir or - I guess - relative to moin.wsgi.
Better use absolute.
> RewriteCond %{REQUEST_URI} ^/testwiki/
> RewriteRule ^(.*)$ /moin.wsgi/$1 [L]
I think you can do this easier just with RewriteRule.
BTW, mod_rewrite had some issues in the past with pagenames ending with
a question mark. You could check if this still happens.
More information about the Moin-user
mailing list