Name duplicates previous WSGI daemon definition

前端 未结 4 961
谎友^
谎友^ 2021-02-07 07:09

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 or

相关标签:
4条回答
  • 2021-02-07 07:36

    The reason for the error is because the name of a mod_wsgi daemon process group must be unique across the whole 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 working out what daemon process group is being referred to in certain situations.

    0 讨论(0)
  • 2021-02-07 07:37

    If you're facing this issue while using certbot command to install multiple "Let's Encrypt Certificates" then it may be due to some bug in certbot. As discussed here, for a quick workaround you can comment

    WSGIScriptAlias 
    WSGIDaemonProcess 
    WSGIProcessGroup
    

    to run certbot command and then remove the comments afterwards.

    0 讨论(0)
  • 2021-02-07 07:46

    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
    
    0 讨论(0)
  • 2021-02-07 07:50

    I have the same problem with Apache2 configuration. In my case I have duplicated 000-default.conf file in /etc/apache2/sites-enabled.

    First I looking 'WSGIDaemon' string in Linux:

    grep -iRl "WSGIDaemon" ./
    

    Second analize every line. I found duplicated file on /etc/apache2/sites-enabled/000-default-copy.conf. After delete, checking syntax:

    sudo apachectl configtest
    

    return 'Syntax OK'. I spend on this 4 hours... I hope somebody use this :)

    0 讨论(0)
提交回复
热议问题