Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Name duplicates previous WSGI daemon definition

Tags:

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.

My original Apache2 conf works fine and the basis is:

<VirtualHost *:80>
        ServerAdmin [email protected]
        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
        ...
</VirtualHost>

I set up a new conf file with only the following changes:

    ServerName newsite.co.uk
    ServerAlias www.newsite.co.uk

And I'm getting the following error:

Name duplicates previous WSGI daemon definition.

How do I fix this? Thanks for your help

like image 981
HenryM Avatar asked Sep 04 '16 13:09

HenryM


1 Answers

change originalsite name

not in the directory address just the name like

WSGIDaemonProcess somethingelse python-path=/var/www/originalsite:/var/www/originalsite/env/‌​lib/python2.7/site-p‌​ackages

and

WSGIProcessGroup somethingelse
like image 147
max Avatar answered Oct 08 '22 21:10

max