我通过以下链接在设置certbot时遇到了Ubuntu XAMPP的麻烦:https://certbot.eff.org/lets-encrypt/ubuntubionic-apache
主要部分:
sudo certbot --apache-ctl /opt/lampp/bin/apachectl
sudo nano /opt/lampp/etc/httpd.conf
------------
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
Include etc/extra/httpd-vhosts-le-ssl.conf #Add it here
链接:https://github.com/oliguo/Server-Certbot-XAMPP-Ubuntu