I don't see why not. For Apache, you would just place the relevant WSGIScriptAlias and WSGIPythonPath inside of your VirtualHost elements. You would need to be cautious about running a single WSGI process though, since the first site settings read will apply to all of your Django sites (which is probably not what you want), as explained at the end of the section in the Django docs here:
Django recommends running Apache WSGI in daemon mode though, so you shouldn't need to worry about the settings files clashing: https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/modwsgi/#daemon-mode
Haven't toyed enough with the others to know whether or not it is possible, but I'm sure all of the major servers have similar separation strategies for exactly this scenario.
A quick Google shows that Nginx/uWSGI can support multiple sites through the use of Emperor Mode and separate vassal configuration for each site, which sounds very similar to Apache/mod_wsgi daemon mode.
-James
On Mon, Feb 2, 2015 at 11:44 PM, Mike Dewhirst <miked@dewhirst.com.au> wrote:
Is it possible to run two virtual hosts on the same machine for Django sites where one is 1.7 and the other 1.6?
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54D07C57.4010108%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVBLqhUt5f7xiFxnnRJ%3DAV%3DzPQdCD9oK2dQcUKP_RhdKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment