0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixed #135 -- Added 'Multiple Django installations on the same Apache' to docs/mod_python.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-07-21 15:40:33 +00:00
parent 8aa1645812
commit 52d761cc7a

View File

@ -63,6 +63,31 @@ Here's a template for an admin configuration::
The only thing different here is the ``DJANGO_SETTINGS_MODULE``.
Multiple Django installations on the same Apache
================================================
It's entirely possible to run multiple Django installations on the same Apache
instance. Just use ``VirtualHost`` for that, like so::
NameVirtualHost *
<VirtualHost *>
ServerName www.example.com
# ...
SetEnv DJANGO_SETTINGS_MODULE myproject.settings.main
</VirtualHost>
<VirtualHost *>
ServerName admin.example.com
# ...
SetEnv DJANGO_SETTINGS_MODULE myproject.settings.admin
</VirtualHost>
Don't put two Django installations within the same ``VirtualHost``. Due to the
way mod_python caches code in memory, your two Django installations will
conflict. If you can think of a way to solve this problem, please file a ticket
in our ticket system.
Running a development server with mod_python
============================================