I am trying to run to run django and flask on the same apache server.

WSGISocketPrefix /var/www/wsgi
<VirtualHost *:80>
        ServerAdmin name@email.com
        ServerName  domain.com
        ServerAlias www.domain.com
        DocumentRoot /var/www/
        LogLevel warn
        WSGIDaemonProcess apache processes=2 maximum-requests=500 threads=1
        WSGIProcessGroup apache
        Alias /media /var/www/media/

        WSGIScriptAlias / /var/www/djangoapps/django.wsgi
        WSGIScriptAlias /app1 /var/www/flaskapps/app.wsgi
</VirtualHost>
  1. The first WSGIScriptAlias runs a django app in the root: domain.com.
  2. The second instance of WSGIScriptAlias needs to run a flask app in a subdomain: app1.

But since the main site sits over django, when I try to hit: domain.com/app1, django's urls.py tries to handle that url command. But urls.py should not handle it, since its an independent flask app.

Any ideas how can I go about it?

Edit
Report