On Oct 27, 6:43 pm, Aljosa Mohorovic <[EMAIL PROTECTED]>
wrote:
> On Oct 27, 5:52 am, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
> > A single instance of the web application would then handle each
> > virtual host.
>
> is this something that is possible/stable to use in mod_wsgi/django
> combination?
Yes.
> concrete example, i'm building a site with a single admin interface
> and several frontends (different design, same content, different
> context), will be hosted at webfaction (although if necessary can be
> slicehost or something else).
> depending on domain i thought i'll configure several mod_wsgi/django
> projects (apps in webfaction configuration) but i'm very interested in
> option to handle all request from single django project/webfaction
> app.
> obviously i want to use less memory since every frontend will have
> 100-500 hits per month so there is no real need to have ~10x50mb if i
> can use 50-70mb.
> can you provide any suggestions for this situation?
> thanks
The preferred approach would be to use mod_wsgi daemon mode and have a
separate daemon process for each virtual host. Since the sites are so
infrequently used, you would set inactivity-timeout option for daemon
process so when site is idle it will effectively shutdown until
required again, at which point it will be reloaded automatically.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---