The name duplicates the previous WSGI daemon definition.

I am changing the domain name of the site. For a period of time, I want the old domain name and the new domain name to point to the site. I am running a Django site in Python.

My original Apache2 conf works fine, and the foundation 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 ... </VirtualHost> 

I installed a new conf file with only such changes:

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

And I get the following error:

The name duplicates the previous definition of the WSGI daemon.

How to fix it? Thank you for your help.

+5
source share
2 answers

change originalsite name

there is no name in the directory address, for example

 WSGIDaemonProcess somethingelse python-path=/var/www/originalsite:/var/www/originalsite/env/β€Œβ€‹lib/python2.7/site-pβ€Œβ€‹ackages 

and

 WSGIProcessGroup somethingelse 
+3
source

The cause of the error is that the process group name of the mod_wsgi daemon must be unique for the entire Apache installation. It is not possible to use the same daemon process group name in different VirtualHost definitions. This is necessary to avoid conflicts when developing which group of daemon processes are referenced in certain situations.

+2
source

All Articles