HenryM HenryM - 1 month ago 8x
Apache Configuration Question

Name duplicates previous WSGI daemon definition

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 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

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

max max

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


WSGIProcessGroup somethingelse