Handle multiple Django projects with Apache (WSGIDaemonProcess)

How to write a conf when dealing with different Django projects on multiple Virtual Hosts.

<VirtualHost *:80>
ServerName project-1.com
WSGIDaemonProcess project-1 python-path=/path/to/foo:path/to/bar
WSGIProcessGroup project-1
WSGIScriptAlias / /path/to/wsgi.py process-group=project-1
...
</VirtualHost>

<VirtualHost *:80>
ServerName project-2.com
WSGIDaemonProcess project-2 python-path=/path/to/foo:path/to/bar
WSGIProcessGroup project-2
WSGIScriptAlias / /path/to/wsgi.py process-group=project-2
...
</VirtualHost>

Recommended Posts

Handle multiple Django projects with Apache (WSGIDaemonProcess)
Python3 + Django ~ Mac ~ with Apache
Handle csv files with Django (django-import-export)
Set multiple WSGIPythonPath with Apache + mod_wsgi
Django + Apache with mod_wsgi on Windows Server 2016
CentOS 6.4 with Python 2.7.3 with Apache with mod_wsgi and Django
Save multiple models in one form with Django
Internationalization with django
CRUD with Django
Configure a module with multiple files in Django
Authenticate Google with Django
Django 1.11 started with Python3.6
Upload files with Django
Multiple selections with Jupyter
Development digest with Django
Output PDF with Django
Markdown output with Django
Use Gentelella with django
Twitter OAuth with Django
Getting started with apache2
Getting Started with Django 1
Handle Excel with python
Send email with Django
Handle rabbimq with python
File upload with django
Use LESS with Django
Pooling mechanize with Django
Use MySQL with Django
Start today with Django
Getting Started with Django 2
How to handle static files when deploying to production with Django
Set up a web server with CentOS7 + Anaconda + Django + Apache