On Jul 13, 1:04 am, ringemup <ringe...@gmail.com> wrote: > Hi folks -- > > I'm planning on mass hosting a SaaS project built on Django, using > Apache and mod_wsgi. There will be hundreds of domains running off a > single copy of the project code; each domain has a different Site ID > and settings file, and can have its own Virtual Host (I'm also willing > to serve them all off the same VirtualHost if that's simpler). > > I need some help figuring out what the VirtualHost directives and WSGI > scripts should look like in order to a) serve all the sites cleanly > and without conflict, and b) ideally avoid duplication of code as much > as possible (in case, for instance, we have to change our default WSGI > script down the line.) > > I've googled around a bit, but haven't really seen anything that seems > to cover our use case. Has anyone done this before? Can you offer > any pointers?
How much of the documentation on the official mod_wsgi site have you read? Your use case is basically the standard deployment method, duplicated for each VirtualHost. I could suggest some alternatives to that to support a common WSGI script file, but still allow a way of restarting a single daemon process by touching a file specific to each site, eg., that sites settings file. Before doing that though would like to see that you have the standard deployment method working first and understand that else if I start talking about improvements to that without you have actually got the standard method working first, then may just confuse you. Also would need to know what naming strategy you are going to use for the site specific settings files. If know that can describe alternative in a way that makes sense to you rather than you having to translate it. 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-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.