I am working on my first Django project and would like to get comments
on a reasonable layout for a single Django instance used with several
Django projects where:
1. each project is a single web site on a unique virtual host (vhost)
2. all virtual hosts are on a single, real server running Debian 7
3. the real server is running a single Apache 2.4.7 (soon to be 2.4.8) instance
4. each virtual host using Django will be SSL/TLS only or non-SSL/TLS
(i.e., no mixed traffic ports at any one vhost)
Basically I would like to associate the project names with the virtual
host domain names, for example:
domain => project
============
domain1.com => domain1
domain2.com => domain2
I would also like to share common things between sites as much as possible.
Attached is a file showing the appropriate Apache httpd.conf section
illustrating my proposed vhost macro.
Note that the projects are all under:
/web-sites/${project}.${tld}/cgi-bin/${project}
so that that the Python base project name does not have a dot to
confuse Python treatment as a module.
Does anyone see any problems with this layout (except obvious lack of
common Python code treatment)?
I think it will be fairly easy to re-factor common code later.
Comments welcome.
Best regards,
-Tom