similar to this: Deploying multiple django apps on Apache with mod_wsgi
I'm trying to host two django apps on mod_wsgi but one is on root. i.e. the WSGI directives would be
WSGIScriptAlias / <path to django wsgi file for app1>
WSGIScriptAlias /app2 <path to django wsgi file for app2>
Just using the WSGIScript aliases like this doesn't seem to work. I tried putting them in location directives but that doesn't work either. Is there a way to accomplish this?
after Graham's answer below I attempted this:
<VirtualHost <server ip>:80>
ServerName site1.com
##### app2 CONFIG
WSGIDaemonProcess app2 python-path=/<path to django app2>/:/<path to virtualenv app2>/ threads=15 display-name=%{GROUP}
WSGIProcessGroup app2
WSGIScriptAlias /app2 /<path to app2 wsgi file>/
##### app1 CONFIG
WSGIDaemonProcess app1 python-path=/<path to django app1>/:/<path to virtualenv app1>/ threads=15 display-name=%{GROUP}
WSGIProcessGroup app1
WSGIScriptAlias / /<path to app1 wsgi file>
</VirtualHost>
but unfortunately requests to site1.com/app2 still get handled by the django application app1. Did I make a mistake in the config?