title: Multiple Sites with Django and Apache - Can't get both to work at the same time
body: <p>We have two sites made in Django, one is a fork of the other (same project name) so we had issues with the wrong settings.py loading for the second site in mod_wsgi. So we put mod_wsgi into Daemon mode to hopefully separate the two more so this didn't happen.</p>
  <p>One works fine when the other is either disabled or configured incorrectly. Once the second site is made to what should work, it doesn't and it brings the first one down with it, giving us an Apache 500 Error.</p>
  <p>Here is the conf.d file we have for one of them:</p>
  <pre><code>WSGIDaemonProcess {siteName}.co.uk python-home=/var/www/vhosts/{siteName}.co.uk/venv python-path=/var/www/vhosts/{siteName}.co.uk/website/{djangoProject}
  WSGIProcessGroup {siteName}.co.uk
  
  WSGIScriptAlias / /var/www/vhosts/{siteName}.co.uk/website/{djangoProject}/{djangoProject}/wsgi.py
  WSGIPythonHome /var/www/vhosts/{siteName}.co.uk/venv
  WSGIPythonPath /var/www/vhosts/{siteName}.co.uk/website/{djangoProject}
  
  &lt;VirtualHost *:80&gt;
  
    ServerName {siteName}.co.uk
  
    ServerAlias www.{siteName}.co.uk
  
  
    &lt;Directory /var/www/vhosts/{siteName}.co.uk/&gt;
  
             Options Indexes FollowSymLinks MultiViews
  
             AllowOverride All
  
     &lt;/Directory&gt;
  
     &lt;Directory /var/www/vhosts/{siteName}.co.uk/website/{djangoProject}/{djangoProject}&gt;
        &lt;Files wsgi.py&gt;
           Require all granted
        &lt;/Files&gt;
     &lt;/Directory&gt;
  
  CustomLog /var/log/httpd/{siteName}.co.uk-access.log combined
  
  ErrorLog /var/log/httpd/{siteName}.co.uk-error.log
     # Possible values include: debug, info, notice, warn, error, crit,
  
     # alert, emerg.
  
     LogLevel warn
  
  &lt;/VirtualHost&gt;
  </code></pre>
  <p><strong>Note:</strong> The file is the same for the two sites, except for that <em><strong>{siteName}</strong></em> is different. <em><strong>{djangoProject}</strong></em> is the same, since one is a modified clone of the other.</p>
  <p>It also gives the error in the apache log that there was a permission denied for the mysite.log file, this file for both sites has been made to have permissions 777 through chmod, but this error still persists.</p>
  <p>This error seems strange since when one is configured to run, it works fine, this error only occurs when both sites are attempting to run at the same time.</p>
  <p>Anybody know what we might be missing?</p>
  <p><em><strong>UPDATE</strong></em></p>
  <p>Figured out the mysite.log thing, it was an incorrect config for one of the sites. However, now that that is fixed. both domains are pointing to site 2, as in Site 2 loads and works on domain 2, but domain 1 shows site 2 not site 1</p>