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