I used certbot to install certificate, but am unable to use SSL

I am using multiple vHost files each for one domain. I installed using the certbot webpage instructions: https://certbot.eff.org/#ubuntutrusty-apache

It appeared to have installed and the files appear within /etc/letsencrypt, but the webpages do not appear to work with https://

Do i need to make changes to the vhost files or the DNS list?

My domain is: lankanmon.com

I ran this command:
./certbot-auto --apache

It produced this output:
Currently, we only support configurations with one vhost per file

My operating system is (include version):
Ubuntu 14.04

My web server is (include version):
Apache2

My hosting provider, if applicable, is:
Digital Ocean

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):
No

What thought came into your mind when you read “Currently, we only support configurations with one vhost per file”?

By my understanding, it means you must have one vhost per file, and multiple files (one per domain).

That is exactly what I have.

I have example.com.conf, example1.com.conf etc. with each file containing:

<VirtualHost *:80>
    ServerName lankanmon.com
    ServerAlias www.lankanmon.com
    ServerAdmin admin@lankanmon.com
    DocumentRoot /var/www/lankanmon/html/
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

etc…

I’m quite certain you’re having a ‘double’ vhost somewhere… Perhaps a general configuration file with some sort of default virtualhost, but somehow another one beneath it?

I just looked through all of the files and they are all identical.
And there are no default files.
The file in question has this content:

<VirtualHost *:80>
    ServerName skytoday.space
    ServerAlias www.skytoday.space
    ServerAdmin admin@lankanmon.com
    DocumentRoot /var/www/skytoday/html/
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

The installer message spits out:

Error: should only be one vhost in
/etc/apache2/sites-available/skytoday.space.conf  

Any ideas?

Hmm, certbot shouldn’t have any trouble with that file… So I’m afraid I don’t have any new ideas :stuck_out_tongue:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.