Ubuntu certbot 无法找到监听端口 80 的虚拟主机

Ubuntu certbot 无法找到监听端口 80 的虚拟主机

我在 /etc/apache2/sites-available/ 中为站点创建了一个配置文件,启用它并重新启动 apache。sudo apache2ctl configtest 显示Syntax OK。当我执行时sudo certbot --apache- 我看不到我的域名,如果我执行sudo certbot --apache -d csgo.sbs- 它会响应:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for csgo.sbs
Cleaning up challenges
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.

我的配置站点启用配置:

# csgo.sbs
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "/home/csgo.sbs"
    ServerName csgo.sbs
    ServerAlias www.csgo.sbs
    ErrorLog "logs/csgo.sbs-error_log.log"
    CustomLog "logs/csgo.sbs-access_log.log" common
    <Directory "/home/csgo.sbs">
        Require all granted
        AllowOverride All
  </Directory>
</VirtualHost>

怎么了?

相关内容