我已经添加了一个域。 我想用certbot为新域启用https。 遵循此https://certbot.eff.org/lets-encrypt/ubuntubionic-apache sudo certbot --apache
[sudo] password for qq:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS
我的服务器上有ubuntu系统。我有php,composer,还有laravel项目,它运行得很好。但我有一个问题。所有东西都在我的服务器ip上工作,但我也有域名。所以我希望所有这些都在域名上。当我进入域时,它会弹出:
This site can’t be reached
ERR_NAME_NOT_RESOLVED
然后,我清除浏览器dns缓存,但不工作。在我看来,它需要apache虚拟主机或类似的东西。因此,我在(/etc/apache2/ my_domain.conf )中创建了这个文件中的代码:
ServerAdmin admin@example.com
ServerName