Ok, for those two examples you would add the following to your
# for Alias
route = /sitemap\.xml static:/home/$(OPAL_USER)/apps/static/sitemap.xml
# for 301 redir
route = /old/file/path redirect-301:/new/file/path
I used the
$(OPAL_USER) since that's what you used in your example, but you can replace that with your app's shell username if you need to.
For the 301, if
/new/file/path is actually a static file then you'll need a static route for that in addition to the redirect, eg...
route = /new/file/path static:/home/$(OPAL_USER)/apps/static/new/file/path
... although on a production site you should serving all of your static assets from a separate static app and not directly from uWSGI.
Be sure to reload your uWSGI config after updating your
uwsgi.ini. If you're running uWSGI from our installer then you can do a reload with the following command:
kill -HUP $( cat /home/user/apps/app/tmp/uwsgi.pid )