Name duplicates previous WSGI daemon definition
<p>I'm changing the domain name of a site.  For a period I want the old domain name and the new domain name to point to the site.  I'm running a Python Django site.</p>

<p>My original Apache2 conf works fine and the basis is:</p>

<pre><code>&lt;VirtualHost *:80&gt;
        ServerAdmin name@gmail.com
        ServerName originalsite.co.uk
        ServerAlias www.originalsite.co.uk
        DocumentRoot /var/www/originalsite
        WSGIDaemonProcess originalsite python-path=/var/www/originalsite:/var/www/originalsite/env/lib/python2.7/site-packages
        WSGIProcessGroup originalsite
        WSGIScriptAlias / /var/www/originalsite/originalsite/wsgi.py
        ...
&lt;/VirtualHost&gt;
</code></pre>

<p>I set up a new conf file with only the following changes:</p>

<pre><code>    ServerName newsite.co.uk
    ServerAlias www.newsite.co.uk
</code></pre>

<p>And I'm getting the following error:</p>

<blockquote>
  <p>Name duplicates previous WSGI daemon definition.</p>
</blockquote>

<p>How do I fix this?  Thanks for your help</p>

<p>change <code>originalsite</code> name </p>

<p>not in the directory address just the name like </p>

<pre><code>WSGIDaemonProcess somethingelse python-path=/var/www/originalsite:/var/www/originalsite/env/ââlib/python2.7/site-pââackages
</code></pre>

<p>and </p>

<pre><code>WSGIProcessGroup somethingelse
</code></pre>

python django apache mod-wsgi