If you install MoinMoin to serve from a location somewhere other than the root (say /wiki), and correctly configure the url_prefix in moin.wsgi, MoinMoin stil thinks it running at the root, and will not serve pages correctly. asked 04 Dec '11, 20:19 MikeyP |
I seems the wsgi application in not passed the correct path in SCRIPT_NAME. I found two changes were needed. The examples below are for /wiki as the url prefix 1) in wikiconfig.py, specify the path normally in url_prefix_static:
2) in moin.wsgi, add a piece of WSGI middleware to add the correct prefix to the SCRIPT_NAME:
answered 04 Dec '11, 20:27 MikeyP 1
I created an account on this forum so that I could give you the appropriate amount of thanks and praise for this solution. I nearly pissed my day away and was about to see if I could use Apache's mod_rewrite (what a miserable rabbit hole that would have been) when I came upon your answer. Were I only able to give you an upvote...
(09 Mar '12, 02:32)
chb
|