This question was more appropriate for the users list, not the developers 
list. So please use users list in future.

On Sunday, January 23, 2011 9:42:13 AM UTC+11, Manuel Gonçalves - Analista 
de Sistemas IFPI wrote:
>
> Hi, anyone has done a deploy of various django apps on the same 
> Apache Server with a single VirtualHost ? 
>  The WSGI docs only cover a single app per Server or  VirtualHost with 
> WSGIScriptAlias / /usr/local/app1/scripts/django.wsg 
>
> Using /  with WSGIScriptAlias all requests go to this app, I need a 
> way to make various app on unique server : 
>
> WSGIScriptAlias /app1 /usr/local/app1/scripts/django.wsg 
> WSGIScriptAlias /app2 /usr/local/app2/scripts/django.wsg 
> WSGIScriptAlias /app3 /usr/local/app3/scripts/django.wsg 
>

And that is exactly how you do it.

Just suggest that you run each in a separate mod_wsgi daemon process to 
reduce possibility that they may interfere with each other if run in 
different sub interpreters of the same process. See:

  
http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#Delegation_To_Daemon_Process

Also note that when mounting at sub URLs, there are a few things in 
settings.py file which have to have the mount put as part of the value for 
the setting. From memory, things like LOGIN_URL.

  http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#login-url

Don't remember the whole list of such settings, but there are only a few.

The mount point (sub URL) should not be used in urls.py though as Django 
will automatically work out that bit.

So, go try it and then use the users list if have more questions.

Graham
 

>
> So if open 
> http://www.example.com/app1 (go to django app1) 
> http://www.example.com/app2 (go to django app2) 
>
> and so on; anyone has used many django apps on same apache server 
> without diferents virtualhosts? 
> Can anyone show me a  default.conf onf  apache2 and wsgi.conf? 
>
> I just wanna make one apache2 server to deploy many  django apps 
> without a separate VHost for each one. 
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to