I just set up uWSGI and nginx (with the uWSGI module) and would like to get MoinMoin set up. I'm running uWSGI with MoinMoin with the command below:
/usr/bin/uwsgi -s moin.sock --wsgi-file wiki/server/moin.wsgi -M -p 4
In nginx, I have it set up like this:
location / {
uwsgi_pass unix:///mnt/moin/moin.sock;
include uwsgi_params;
}
If I wanted MoinMoin to run on the root of my server, this would work fine, but I want my MoinMoin to run on /wiki rather than /. I changed my nginx config to reflect this:
location /wiki {
uwsgi_pass unix:///mnt/moin/moin.sock;
include uwsgi_params;
}
After restarting both server, the links in MoinMoin still want to go to /PageName rather than /wiki/PageName. I would think I would have to specify a setting in MoinMoin. I saw there is a url_prefix_static option for wikiconfig.py, but am not sure if that is deprecated or if there is a better way of doing this.