KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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> The first WSGIScriptAlias runs a django app in the root: domain.com. 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?
Tags (comma-separated)
Save Edits
Cancel