I am running Apache/2.4.16 on a 12.04.5 Ubuntu. When the beta was first opened a while back I have successfully ran the letsencrypt client and install a few certificates.
Recently I wanted to install a certificate for a new domain and I was running the usual command
./letsencrypt-auto --apache --server https://acme-v01.api.letsencrypt.org/directory --agree-dev-preview
and received
No names were found in your configuration files. You should specify ServerNames in your config files in order to allow for accurate installation of your certificate
If you do use the default vhost, you may specify the name manually.
Would you like to continue?
which was weird. apache2ctl configtest
gives Syntax OK
, and apache2ctl -S
correctly displays all the vhost I have.
Anyway, I went further with the letsencrypt-auto
's dialog
Please enter in your domain name(s) (comma and/or space separated)
my.domain.com
but no joy:
No vhost exists with servername or alias of: my.domain.com. No
vhost was selected. Please specify servernames in the Apache config
my.domain.com is available on http and its .conf
file looks like
<VirtualHost *:80>
DocumentRoot "/home/..."
ServerName my.domain.com
ServerAdmin ..@...
<Directory "/...">
AllowOverride All
Require all granted
Options -Indexes
</Directory>
ErrorLog /var/log/apache2/...
LogLevel warn
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog /var/log/apache2/... "vhost_combined"
</VirtualHost>
I searched for similar problems but I couldn't find any. I also tried to renew some of the existing domains, but the same thing happened.
For what it's worth, I was using the commit 3256916 of the letsencrypt client.
Do you have any ideas?