Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: grazehound.com
I ran this command:
certbot --apache --staging
It produced this output:
Enabling available site: /etc/apache2/sites-available/graze-jn-le-ssl.conf
Error while running apache2ctl configtest.
Action ‘configtest’ failed.
The Apache error log may have more information.
AH00526: Syntax error on line 9 of /etc/apache2/sites-enabled/graze-jn.conf:
Name duplicates previous WSGI daemon definition.
My web server is (include version): Apache2 (version?)
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is: self
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
Following is a comprehensive explanation and request for help:
When I get a (test) certificate with the command:
certbot --apache --staging
Most of the time I do not get the option to just have a single HTTPS vHost file, a second vHost file is created. (Note: I said most of the time because one time I did get the prompt to have a single vHost file or two. I really don’t what I did that allowed this prompt to appear.)
I’m using Flask and have the WSGIDaemonProcess directive in my vHost file. Apache states that the WSGIDaemonProcess name must be unique across all the vHosts. When the certbot apache plugin created the HTTPS vHost the original WSGIDaemonProcess was placed in the HTTPS file. Now I have two vHost file with the same name for the WSGIDaemonProcess directive.
This resulted in a failure to update my vHosts. Commenting out the offending line, allowed the creation of the HTTPS vHost file, but nothing worked. My Flask driven site was non-functional. Going back into the certbot generated (HTTPS) vHost file and uncommenting the WSGIDaemonProcess directive restored the sites operation That is with the HTTP vHost still having the WSGIDaemonProcess directive commented out.
I have three questions:
Is there a command line parameter to always create a single HTTPS vHost with redirection of the HTTP protocol to HTTPS?
What am I doing wrong that is preventing the prompt to choose between two vHost files, one for HTTP the other for HTTPS and a single vHost that redirects the HTTP to HTTPS?
Are there a set of command line parameters that will allow me to fully automate this process? No prompts, just get the certificates and create a single HTTPS with HTTP redirection vHost file, in order to automate this process?
Thanks in advance for any help or insight you can offer.