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, so apache configtest fails and whole instalation is reverted:
command: certbot-auto --apache -d django.my-domain.cz
Lines about WSGI config looks like:
Does anybody know how to fix installation process or my config about WSGI daemon? Thanks!
-- 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, so apache configtest fails and whole instalation is reverted:
command: certbot-auto --apache -d django.my-domain.cz
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.
Lines about WSGI config looks like:
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
Does anybody know how to fix installation process or my config about WSGI daemon? Thanks!
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/28d67630-cfc8-4d06-a213-a3c6e305dfe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment