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
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-packages
and
WSGIProcessGroup somethingelse
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With