You omitted a Virtualmin version but I’ll assume you are on Vm?
Turns out there is a little copy icon at the top of the dashboard.
But the first step is to use Virtmin to get the cert. I know it will set up the secure port when you set the site up but you’d have to check the configs to see if it does it now. But, start by using Virtualmin to get the cert. Server configuration > SSL then go to the let’s encrypt tab.
I guess my real question is how can I convert my Piwik installation to a Virtualmin host? I initially set up Piwik using Webmin (before I knew about Virtualmin). Apache serves it from /var/www/piwik
Is it as simple as using Webmin to remove the Piwik host (both port 80 & 443) and then creating the Virtualmin host pointing at /var/www/piwki?
[When searching the forums, I see that the only sensible option for enabling Let’s Encrypt is to use a Virtualmin host. All the other paths are too much work. So “all I need to do” is figure out how to move my working Piwik installation to Virtualmin.] Many thanks!
PS re: the Copy icon. That’s really cool! Thanks for the tip - I attached the info.
Delete the old (webmin-created) piwik.richb-hanover.com (the contents of /var/www/piwik remain)
Create a new Virtualhost with Virtualmin using “Initial website content” of default template and “hello world” as initial content . This goes into a newly created home directory /home/piwik
Set up the Let’s Encrypt certificate as usual.
cp -R --preserve /var/www/piwik /home/piwik/public_html (Copy everything into the new directory. Make sure to copy into the public_html directory…)
rm public_html/index.html (to get rid of the default “initial website content”)
(probably) rm -rf /var/www/piwki after I’m completely sure it worked as desired.
I don’t know if this is “the right way” to do it, but it seems to have worked for me.