Serving multiple Django apps from the same Apache server

view story

http://serverfault.com – How do you host two separate Django apps, each using a different domain, on the same Apache server using mod_wsgi? The apps use the same codebase, but each has a different settings.py file (defined as settings_domain1.py and settings_domain2.py). I've defined an Apache conf file for each site (domain1.com and domain2.com): domain1.conf: <VirtualHost *:80> ServerName domain1 ServerAlias *domain1.com DocumentRoot /usr/local/myapp/current/media RewriteEngine On AllowEncodedSlashes On <Directory /> Options FollowSymLinks AllowOverride None (HowTos)