【发布时间】:2017-07-16 17:58:46
【问题描述】:
我正在尝试使用 Letsencrypt 设置 ssl 证书,但是当我运行时:
./letsencrypt-auto --apache -d industriemedia.tv
好像找不到我的域名:
[root@ip-172-31-21-7 letsencrypt]# ./letsencrypt-auto --apache -d industriemedia.tv
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for industriemedia.tv
We were unable to find a vhost with a ServerName or Address of industriemedia.tv.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
-------------------------------------------------------------------------------
1: ssl.conf | | HTTPS | Enabled
-------------------------------------------------------------------------------
但我在 /etc/httpd/conf/httpd.conf 中添加了一个虚拟主机
<VirtualHost *:80>
ServerName www.industriemedia.tv
ServerAlias industriemedia.tv *.industriemedia.tv
DocumentRoot /var/www/html/
</VirtualHost>
【问题讨论】:
-
你试过
./letsencrypt-auto --apache -d www.industriemedia.tv吗?
标签: ssl amazon-ec2 redhat lets-encrypt