Created an SSL vhost at /etc/apache2/sites-available/my-domain.cz_crm-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/my-domain.cz_crm-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/my-domain.cz_crm-le-ssl.conf
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
AH00526: Syntax error on line 26 of /etc/apache2/sites-enabled/my-domain.cz_crm.conf:
Name duplicates previous WSGI daemon definition.
Rolling back to previous server configuration...
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
AH00526: Syntax error on line 26 of /etc/apache2/sites-enabled/my-domain.cz_crm.conf:
Name duplicates previous WSGI daemon definition.
WSGIDaemonProcess vkcrm python-path=/var/www/virtual/django/vkcrm:/var/www/virtual/django/lib/python3.4/site-packages
WSGIProcessGroup vkcrm
WSGIScriptAlias / /var/www/virtual/django/vkcrm/vkcrm/wsgi.py
On Friday 24 March 2017 15:22:40 Moreplavec wrote:
> I'm trying to install SSL certificate with Let's encrypt on my VPS
> running Apache + WSGI.
>
> I'm following guide:
> https://www.digitalocean.com/community/tutorials/how-to-secure-apache
> -with-let-s-encrypt-on-ubuntu-14-04
>
> It works fine for all PHP sites, but i get an error when trying to
> install SSL for Django app. I think the problem is, that SSL cert
> conf is made as duplicate or currect conf file
Yes, it is. So from the mod_wsgi docs, or mod_wsgi list, you should inquire how to "use a previously defined WSGIDaemonProcess in a virtual host". Then keep the definition out of the the vhost file and have it included somewhere sooner.
(Or use a different letsencrypt client that doesn't fiddle with webserver configs, and reference files using a good naming convention).
--
Melvyn Sopacua